Hi, I need some query help...
I have data look similar to this in our customer sales database:
Date Customer_ID
-----------------------------------
1/1/2008 A1111
1/3/2008 A2535
12/12/2007 A2554
12/10/2007 A1255
I am trying to build a report for '# of Customers for Last 3 month'. Currently I am using 'between (date) and (date)' sql line and put this into excel month-by-month.
I want sql to show something like this:
Month # of Customer
------------------------------
01/2008 12
02/2008 26
03/2008 12
Date range for Month of 01/2008 would be 11/01/2007 and 1/31/2008.
Any help would be greatly appricated!
Thank you sirs!