SQL剔除重复数据查询方式,找大神求助!
发布网友
发布时间:2024-10-12 22:27
我来回答
共1个回答
热心网友
时间:2024-12-01 00:05
select a.*
from testsheet a
where (exists (
select 1 from (select max(defen) as defen,suid from testsheet group by suid) as b
where (a.suid=b.suid) and (a.defen=b.defen)
))
order by a.defen asc;