我想要查询这张表每个月消费三次以上的人员信息
sqlserver吧
全部回复
仅看楼主
level 3
柒☞柒 楼主
我建立了一个存储过程,想要用两个group by查询次数
先以cardn为分组查询,然后在这个基础之上再用group by xftime查询。用sqlserve语句该怎么去写?
2017年01月06日 14点01分 1
level 3
柒☞柒 楼主
有人么
2017年01月06日 14点01分 2
level 3
柒☞柒 楼主
真的没有人么
2017年01月06日 14点01分 3
level 3
柒☞柒 楼主
没有人的话我待会再来问一遍
2017年01月06日 14点01分 4
level 3
柒☞柒 楼主
求求求求有大神不!!!
2017年01月06日 14点01分 5
level 12
select xxx from ( select xxx from xxx group by xxx ) group by xxx
2017年01月13日 04点01分 6
level 11
select * from table where cardn in(select distinct cardn from table group by cardn having COUNT(cardn)>=3)
select xftime from table where cardn in(select distinct cardn from table group by cardn having COUNT(cardn)>=3) group by xftime
不太明白为什么用xftime分组 没看到有一样的情况 所以强行谢了第二句
不知道有没有你需要的结果
2017年01月13日 15点01分 7
1