新手来了
我使用以下代码获取每年每月用户总数的结果。
select
count(*) as 'new users',
year(joined_at) as year,
month(joined_at) as month
from users
group by year, month
order by year asc, month asc;
结果按顺序显示在表格中
new users | year | month
我怎样才能让结果显示为
Year | Month | New users