From the following table, write a SQL query to find highest order (purchase) amount by each customer in a particular order date
- برمجة سي كيو ال sql
- 2021-09-01
- mhanasmh00489829403
الأجوبة
SELECT customer_id,ord_date,MAX(purch_amt)
FROM orders
GROUP BY customer_id,ord_date
HAVING MAX(purch_amt)>2000.00;
Output of the Query:
customer_id ord_date max 3007 2012-07-27 2400.60 3002 2012-09-10 5760.00 3009 2012-10-10 2480.40 3002 2012-04-25 3045.60
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال