私は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
どうすればこれを入手できますか?