以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 求一个sql语句 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=96312) |
-- 作者:有点色 -- 发布时间:2017/2/17 15:49:00 --
select 日期, (select count(*) from {表A} as b a.日期 = b.日期1) as 日期1, (select count(*) from {表A} as b a.日期 = b.日期2) as 日期2 from {表A} as a
|