标签: sql-server-2008-r2
我不知道它为什么不起作用......我需要选择特定的行,其数量大于5。
SELECT member, COUNT(DISTINCT member) as membs FROM myDB WHERE membs>5 GROUP BY membe
答案 0 :(得分:1)
试试这个:
SELECT member, COUNT(member) as membs FROM myDB GROUP BY membe HAVING COUNT(member) > 5