Hi everybody,
Can someone please tell me the syntax using a SELECT statement to do the following (if there is one, of course):
I have the following data:
Year Customer# TotalSales
2003 ABC $400
2004 ABC $800
2003 DEF $500
2004 GHI $600
Now, I want to consolidate the above into a table that has 1 record per Customer... as such:
Customer # TotalSales_2003 TotalSales_2004
ABC $400 $800
DEF $500 $0
GHI $0 $600
Is this possible?
Thank You!
Jack.
Can someone please tell me the syntax using a SELECT statement to do the following (if there is one, of course):
I have the following data:
Year Customer# TotalSales
2003 ABC $400
2004 ABC $800
2003 DEF $500
2004 GHI $600
Now, I want to consolidate the above into a table that has 1 record per Customer... as such:
Customer # TotalSales_2003 TotalSales_2004
ABC $400 $800
DEF $500 $0
GHI $0 $600
Is this possible?
Thank You!
Jack.