R
R
Rishat Sultanov2016-11-22 11:15:37
SQL
Rishat Sultanov, 2016-11-22 11:15:37

How to display the maximum number of orders processed by an employee?

Good day, me again.
Please help with the withdrawal of the maximum number of processed orders by an employee.
DB - www.w3schools.com/sql/trysql.asp?filename=trysql_s...
I made a query that shows the processing of each of the handlers. And the number of treatments.
And here's how to bring out the person who processed the most.
As I understand it, you must first go through COUNT and find MAX. But syntactically I can't do it.

SELECT s.SupplierName as "NameObrabot4ika",p.SupplierID as "Kolvo obrabotok"
FROM [Suppliers] s
INNER JOIN Products p ON p.SupplierID = s.SupplierID
GROUP BY s.SupplierID

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kuzmina Maria, 2016-11-22
@orriole

www.sql-tutorial.ru/ru/book_aggregate_function_to_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question