SQL practice: HAVING: Filtering the Groups
Chapter 11 · 10 questions · included in full access
Question 1 · easy
Solve it in your browserFind categories with more than 3 products.
Question 2 · easy
Solve it in your browserFind customers (customer_id) who placed more than 3 orders.
Question 3 · medium
Solve it in your browserFind branches with more than 4 Delivered orders.
Question 4 · medium
Solve it in your browserFind customer_type values with 5 or more customers.
Question 5 · medium
Solve it in your browserFind products (product_id) with total quantity sold above 150.
Question 6 · medium
Solve it in your browserFind roles where the average salary is above 50000.
Question 7 · medium
Solve it in your browserFind regions with more than one branch.
Question 8 · medium
Solve it in your browserFind managers who have 2 or more people reporting to them.
Question 9 · hard
Solve it in your browserFind branches that have at least one Cancelled order. (Think: which is it, WHERE or HAVING — or both?)
Question 10 · hard
Solve it in your browserFix this query so it correctly finds branches with more than 5 orders.
These questions are part of full access.
The first chapters of every track are free. Full access is a one-time payment.
See pricing