programming-examples/sql/Subqueries/27. Write a query to find only those customers whose grade are, higher than every customer to the city New York.sql
2019-11-18 14:05:53 +01:00

8 lines
265 B
SQL

/*27. Write a query to find only those customers whose grade are, higher than every customer to the city New York.*/
SELECT *
FROM customer a
WHERE NOT EXISTS
(SELECT *
FROM customer b
WHERE a.grade<=b.grade
AND b.city='New York');