I have a table with the following data:
client totalA totalB item#
clientA 454265.08 869.5 307-1-3138
clientA 1110067.09 869.5 307-1-3138
clientB 15900 852.5 307-1-3149
clientC 436450.76 465 307-5-680
clientC 1066535.03 465 307-5-680
Notice that there are 2 rows for clientA and clientC, because the totalA column is different – because the amounts are displayed in 2 currencies – . What I need to return is 2 rows per currency, but the second row should only show the totalA column, and blank for the rest. So what I want is:
client totalA totalB item#
clientA 454265.08 869.5 307-1-3138
1110067.09
clientB 15900 852.5 307-1-3149
clientC 436450.76 465 307-5-680
1066535.03
Any suggestions how to do this in SQL Server 2008?
Thanks!
1 Answer