Answers for "sql query to only display the highest value"

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
-2

sql set max value in column

ALTER TABLE dbo.mytable ADD CONSTRAINT CK_HAPPINESS_MAX CHECK (PokemonHappiness <= 10000)
Posted by: Guest on October-30-2020

Code answers related to "sql query to only display the highest value"

Code answers related to "SQL"

Browse Popular Code Answers by Language