Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Come generare un solo valore massimo da questa query in SQL?

usa order e limit

ORDER BY 'people needed DESC' LIMIT 1 

MODIFICATO

poiché LIMIT non esiste in sql

usa ORDER BY e TOP

select TOP 1 .... ORDER BY 'people needed' DESC