Answers for "sql took all row where maximum"

SQL
0

get row from max

SELECT * 
FROM t1 WHERE (id,rev) IN 
( SELECT id, MAX(rev)
  FROM t1
  GROUP BY id
)
Posted by: Guest on August-04-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language