I have a table that has a date field and an item field. I want to compare the number of items sold this to the amount sold last year. I know I have to use the Case statement but I can't remember how to do it
Data in Table1:
Date Item
1/1/2004 Apples
3/5/2004 Oranges
2/5/2003 Grapes
5/15/2003 Oranges
The output:
Item 2004 2003
Apples 1 0
Grapes 0 1
Oranges 1 1
Thank in advance!!!!
