SQL practice: The Big Idea
Chapter 22 · 9 questions · included in full access
Question 1 · easy
Solve it in your browserFor every employee, show their name, salary, and the company-wide average salary on every row.
Question 2 · easy
Solve it in your browserFor every employee, show their name, branch, salary, and their own branch's average salary.
Question 3 · medium
Solve it in your browserFor every employee, show how far above or below their branch average they are.
Question 4 · medium
Solve it in your browserFor every product, show its price and the average price of its own category.
Question 5 · medium
Solve it in your browserFor every order item, show the quantity and the total quantity sold of that product across all orders.
Question 6 · medium
Solve it in your browserFor every product, show its price and the highest price in its category.
Question 7 · medium
Solve it in your browserFor every employee, show the number of people in their branch, on every row.
Question 8 · hard
Solve it in your browserExplain in one sentence why WHERE branch_avg > 60000 fails in 22-2, and how you'd fix it.
Question 9 · hard
Solve it in your browserList products priced above their category's average. It fails with 'column "cat_avg" does not exist'. Fix it.
These questions are part of full access.
The first chapters of every track are free. Full access is a one-time payment.
See pricing