发布网友 发布时间:2022-04-09 07:09
共5个回答
懂视网 时间:2022-04-09 11:30
from scott.emp e, (select e.deptno, max(e.sal) sal from scott.emp e group by e.deptno) me where e.deptno = me.deptno and e.sal = me.sal;2.查找某个表 lampa 按字段evno分组,求字段inte的最大值
select * from lampa a where 1>(select count(*) from lampa where a.evno=evno and a.inte<inte)
获取数据库分组后的最大值
标签:
热心网友 时间:2022-04-09 08:38
select name,count(*) from 表 group by name热心网友 时间:2022-04-09 09:56
select count(name) from table group by name;热心网友 时间:2022-04-09 11:31
select count(*) num,max(grade) from table热心网友 时间:2022-04-09 13:22
select name,count(*) as 总数 from 表 group by name where name='ss'