Created
June 13, 2021 09:36
-
-
Save bartubozkurt/71372a8bbcedee33dc19e4d88e5b52c6 to your computer and use it in GitHub Desktop.
lists the employees that have registered more than 10 orders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Employees.LastName, COUNT(Orders.OrderID) AS NumberOfOrders | |
From (Orders | |
INNER JOIN Employees ON Orders.EmployeesID = Employees.EmployeeID) | |
GROUP BY LastName | |
HAVİNG COUNT(Orders.OrdersID) > 10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment