programming-examples/sql/AggregateFunctions/Write a SQL statement which selects the highest grade for each of the cities of the customers.sql
2019-11-18 14:05:53 +01:00

4 lines
160 B
SQL

/*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;