From the following table, write a SQL query to find the maximum order (purchase) amount by the combination of each customer and 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) IN(2000 ,3000,5760, 6000);
Output of the Query:
customer_id ord_date max 3002 2012-09-10 5760.00
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال