以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 请问这个多表分组统计是不是不能用日期作为分组啊? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=120340) |
-- 作者:kljbdjz -- 发布时间:2018/6/13 10:08:00 -- 请问这个多表分组统计是不是不能用日期作为分组啊? ![]() ![]() |
-- 作者:有点甜 -- 发布时间:2018/6/13 10:51:00 -- 应该是bug,改成sql语句
select month(a.第五列) as 月份, sum(a.第三列) as 数量 from {表A} as a inner join {表B} as b on a.第五列 = b.第五列 group by a.第五列
http://www.foxtable.com/webhelp/scr/0695.htm
|