You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
313 B
MySQL
8 lines
313 B
MySQL
5 years ago
|
/*24. Write a query to find all orders with an amount smaller than any amount for a customer in London.*/
|
||
|
SELECT *
|
||
|
FROM orders
|
||
|
WHERE purch_amt < ANY
|
||
|
(SELECT purch_amt
|
||
|
FROM orders a, customer b
|
||
|
WHERE a.customer_id=b.customer_id
|
||
|
AND b.city='London');
|