34,590
社区成员
发帖
与我相关
我的任务
分享
select * from tab a where not exists(select 1 from tab num>a.num and name=a.name)
order by num desc
select *
from tb t
where not exists (select 1 from tb where id = t.id and num < t.num)
order by num desc
select *
from tb t
where not exists (select 1 from tb where name = t.name and num < t.num)
order by num desc
select *
from tbt
where not exists (select 1 from tb where name = t.name and num < t.num)
order by num desc