I have table as Table1
p_cd dt qty price amt
001 12/13/2009 10 20 200
002 12/14/2009 5 10 50
001 12/15/2009 10 20 200
001 12/19/2009 8 20 160
i want result as
p_cd 12/13/2009 12/14/2009 12/15/2009 12/19/2009 totqty price amt
001 10 - 10 8 28 20 560
002 - 5 - - 5 10 50
p_cd dt qty price amt
001 12/13/2009 10 20 200
002 12/14/2009 5 10 50
001 12/15/2009 10 20 200
001 12/19/2009 8 20 160
i want result as
p_cd 12/13/2009 12/14/2009 12/15/2009 12/19/2009 totqty price amt
001 10 - 10 8 28 20 560
002 - 5 - - 5 10 50
Comment