Home Forums SQL Server 2005 T-SQL (SS2K5) Order number grouping and count RE: Order number grouping and count
Florian Reischl
SSC-Dedicated
Points: 37301
More actions
March 4, 2009 at 2:54 pm
#953626
Hello g8r
I'm not sure if I understood, but for the example result of your first post it might be just:
SELECT Visit_Date, COUNT(*)
FROM #Special_Orders
GROUP BY Visit_Date
Greetings
Flo