我有一个 sql 查询:
select dateName(month, DateAccessed) "Month"
, count(1) totalVisits
, count(distinct l.userName) UsersVisit
from and where clause goes here
group by dateName(monthDateAccessed)
order by Month
我得到的输出是
Month totalVisits UsersVisit
April 100 25
February 200 35
July 300 45
March 400 55
May 500 65
但我想要的输出顺序如下:
February 200 35
March 400 55
April 100 25
May 500 65
July 300 45
我怎样才能得到这个?