sql required

S

subs

ozip dzip sum of wgt sum of paid amt year
a b 2000 2333 2009
a b 33 444 2008
c d 44 3333 2009
x y 33 33333 2009
x y 222 2222 2008


output required - Pls note i require the second row also


ozip dzip total wgt 2009 total wgt2008 sum of paid amt 2009
sum of paid amt 2008
a b 2000 33
2333 444
c d 44 3333
x y 33 222
33333 2222


what should be sql query - pls help thanks
 
S

Stefan Hoffmann

hi,
what should be sql query - pls help thanks
Looks like a pivot query. Take a closer look at the wizard after
pressing the "new query" button...



mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

sql help req 1
query needed please help 6
query 3
SQL 2
Pls help with SQL query 12
SQL query urgent pls help 2
SQL 1
Join queryies- urgent 1

Top