againstTheWind
Programmer
I am trying to determine the number of repeat customers we have.
The data is an ORDERS table where using:
select count(CustomerID) as OrdersMade
from Orders
group by customerID
will provide the total number of orders for each customer. Example:
CustomerID OrdersMade
5456 2
4547 1
5667 5
However I need to know how many customers made 3, 4, 5, 6, etc... orders. Thus the date would look like this:
OrdersMade NumberOfCustomers
1 99999999
2 56789
3 23000
4 1200
etc....
Any ideas?
Thanks a bunch!