希望解答!万分感激
代码1:select 分类
,sum(访客数
) as "10月" from search.搜索源
WHERE 来源名称
= "aaa"
and 日期
BETWEEN "2021-10-01" AND "2021-10-31"
group by 分类
;
输出结果
代码2:select 分类
,sum(访客数
) as "11月" from search.搜索源
WHERE 来源名称
= “bbb"
and 日期
BETWEEN "2021-11-01" AND "2021-11-30"
group by 分类
;
输出结果
想实现这样的形式