6
Answers

Urgent:Reply for the output in the form of SQL Script?

M SK

M SK

10y
842
1
 PID ProductDesc ProductCode
 1Packet-Eye P001
 2 
Wiggy W099
 3Wimax-Lite W001
 4 Wimax-Home W002
 Table1
 
The table1 above  contains 20 Rows 
 
 
 Date PID
 1/14/2009 1
 1/15/2009 1
 2/1/2009
 3/3/2009 3
Table 2
 
Table2 contains above 80,000 Rows
 
 
 
Output1 needed is:
 ProductJan 2009 Feb 2009 March 2009April 2009 May 2009 June 2009  July 2009
 Packet Eye 100 678751 30 90 40 
 Wiggy 300    200 150 20 70 12 100
Wimax-lite40597060 100 20 10 
 ----    --- ------ ----- ---- ----- ----- 
 
Using Table1 and Table2, construct 2 separate SQL scripts to derive the output illustrated  Output 1 
 

Answers (6)