Professional Documents
Culture Documents
Lesson+Lab+ +aggregate
Lesson+Lab+ +aggregate
Questions
1. Using the Employees table, find the total number of employees. Alias the column as Total
Employees.
2. Display the category and average list price for the products in the Products table. Group by
category, then sort by list price in ascending order.
3. Find the least expensive product, and total number of products in the Products table.
4. Find the total shipping costs for each customer in the Orders table.
5. Using the Order Details table, find the total for each order with a sum over $1500.
1.
FROM Employees
2.
FROM Products
GROUP BY Category
3.
FROM Products
4.
FROM Orders
5.