我写的是select * from pp2 where num> (select count(num) from pp2 group by num);
答案是select * from pp2 where number in(select num from  pp2 group by num having(count(num)>1)
能帮分析一下答案中的having 的作用吗,以及为什么我的是不是有问题