22,294
社区成员
发帖
与我相关
我的任务
分享select * from tb a
where price=(select min(price) from tb where nation=a.nation)
--修改一下,price最小select * from tb a
where price=(select max(price) from tb where nation=a.nation)select * from tb a
where NOT EXISTS (
SELECT 1
FROM TB
WHERE nation=a.nation
AND price < A.price
OR price = A.price
AND ID < A.ID
)select * from tb a
where id=(select top 1 id from tb where nation=a.nation order by price)