select 工号,count(工号) as 条数  from 打卡有效数据 group by 工号我需要条数大于 4的数据

解决方案 »

  1.   


    select 工号,count(工号) as 条数 from 打卡有效数据 group by 工号 having count(工号) > 4
      

  2.   

    select 工号,count(工号) as 条数 from 打卡有效数据 group by 工号 having count(工号)>4
      

  3.   


    select 工号 
    from (select 工号,count(工号) as 条数 from 打卡有效数据 group by 工号) 
    where 条数>4
      

  4.   

    select 工号 
    from (select 工号,count(工号) as 条数 from 打卡有效数据 group by 工号) 
    where 条数>4