答案 0 :(得分:1)
你可以这样做:
SELECT * FROM(
SELECT distinct id as 1st
FROM YourTable
WHERE 1st =(select max(1st)
FROM YourTable))
INNER JOIN
(SELECT distinct id as 2nd
FROM YourTable
WHERE 2nd =(select max(2nd)
FROM YourTable))
ON(1=1)
这仅适用于每列中有1个MAX值的情况。
下次你提出问题时,请尝试自己解决问题。