查询一列出现次数最多的值

来源:互联网 发布:tensorflow 集成显卡 编辑:程序博客网 时间:2024/05/16 06:15

记录

 

select parentid
  from (select parentid, count(*) c from propertytable group by parentid)
where c =
       (select max(c)
     from (select parentid, count(*) c from propertytable group by parentid));

原创粉丝点击