From the following table, write a SQL query to find the maximum order (purchase) amount generated by each salesperson
- برمجة سي كيو ال sql
- 2021-09-01
- mhanasmh00489829403
الأجوبة
SELECT salesman_id,MAX(purch_amt)
FROM orders
GROUP BY salesman_id
HAVING salesman_id BETWEEN 5003 AND 5008;
Output of the Query:
salesman_id max 5005 270.65 5003 2480.40 5007 75.29 5006 1983.43
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال