Hi,
I have a table like this.
ClientID Code Amount
10 UTIL $20
10 RENT $40
20 UTIL $60
10 EXPENSE $40
.....
.....
I have to write an SQL statement to get all clientids on Rows and Codes on columns
For Examp
UTIL RENT EXPENSE
ClientID
10 20 40 0
20 60 0 0
Remember that theare many codes like UTIL,RENT,EXPENSE. If you have any other solution, Please let me know.
Thanks,
Kolla
I have a table like this.
ClientID Code Amount
10 UTIL $20
10 RENT $40
20 UTIL $60
10 EXPENSE $40
.....
.....
I have to write an SQL statement to get all clientids on Rows and Codes on columns
For Examp
UTIL RENT EXPENSE
ClientID
10 20 40 0
20 60 0 0
Remember that theare many codes like UTIL,RENT,EXPENSE. If you have any other solution, Please let me know.
Thanks,
Kolla