I have a VehicleData table. Need to write SQL query to get row with maximum speed of every vehicle. That is I need a result set with 5 rows (say 5 distinct vehicles) each row is corresponding to maximum speed of respective vehicle. I know its simple, but I couldn’t get it somehow
Share
You should be able to use the following syntax which uses the max function: