From the following tables, write a SQL query to find those orders where an order amount less than any order amount of a customer lives in London City
- برمجة سي كيو ال sql
- 2021-09-01
- mhanasmh00489829403
الأجوبة
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');
Sample Output:
ord_no purch_amt ord_date customer_id salesman_id 70002 65.26 2012-10-05 3002 5001 70004 110.50 2012-08-17 3009 5003 70011 75.29 2012-08-17 3003 5007 70001 150.50 2012-10-05 3005 5002 70012 250.45 2012-06-27 3008 5002
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال