troubleshooting Question

Months in Order

Avatar of rhservan
rhservanFlag for United States of America asked on
Microsoft SQL Server
4 Comments1 Solution5997 ViewsLast Modified:
I run this:
SELECT     count(open_time)as Count,DATENAME(mm, open_time)AS Month
FROM       probsummarym1
WHERE (datediff (mm, getdate ( ) ,Open_Time) > -4)
GROUP BY   DATENAME(mm, open_time)

My return is this:
Count           Month
7498      May
7069      June
3855      July
6676      April
How can I run the month column to be in order.  April, May, June, July
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros