programming-examples/sql/AggregateFunctions/Write a SQL statement which selects the highest grade for each of the cities of the customers.sql

4 lines
160 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL statement which selects the highest grade for each of the cities of the customers.*/
SELECT city,MAX(grade)
FROM customer
GROUP BY city;