1INSERT INTO sales.addresses (street, city, state, zip_code)
2SELECT
3 street,
4 city,
5 state,
6 zip_code
7FROM
8 sales.customers
9ORDER BY
10 first_name,
11 last_name;
12
1SELECT Employees.LastName, COUNT(Orders.OrderID) AS NumberOfOrders
2FROM (Orders
3INNER JOIN Employees ON Orders.EmployeeID = Employees.EmployeeID)
4GROUP BY LastName
5HAVING COUNT(Orders.OrderID) > 10;