I have a table with following fields
ID,Desc, Cound, Code
1, AAA,2,Code1
2, BBB, 5,Code1
3, AAA, 3,Code2
4, CCC, 4, Code3
I need this be represent the data as:
Desc, Code1, Code2, Code 3
AAA, 2, 3, 0
BBB, 5, 0, 0
CCC, 0,0,4
How can I do this in a query.