programming-examples/sql/Subqueries/26. Write a query to display only those customers whose grade are, in fact, higher than every customer in New York.sql

7 lines
239 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*26. Write a query to display only those customers whose grade are, in fact, higher than every customer in New York.*/
SELECT *
FROM customer
WHERE grade > ALL
(SELECT grade
FROM customer
WHERE city='New York');