SQL practice: HAVING: Filtering the Groups

Chapter 11 · 10 questions · included in full access

  1. Question 1 · easy

    Find categories with more than 3 products.

    Solve it in your browser
  2. Question 2 · easy

    Find customers (customer_id) who placed more than 3 orders.

    Solve it in your browser
  3. Question 3 · medium

    Find branches with more than 4 Delivered orders.

    Solve it in your browser
  4. Question 4 · medium

    Find customer_type values with 5 or more customers.

    Solve it in your browser
  5. Question 5 · medium

    Find products (product_id) with total quantity sold above 150.

    Solve it in your browser
  6. Question 6 · medium

    Find roles where the average salary is above 50000.

    Solve it in your browser
  7. Question 7 · medium

    Find regions with more than one branch.

    Solve it in your browser
  8. Question 8 · medium

    Find managers who have 2 or more people reporting to them.

    Solve it in your browser
  9. Question 9 · hard

    Find branches that have at least one Cancelled order. (Think: which is it, WHERE or HAVING — or both?)

    Solve it in your browser
  10. Question 10 · hard

    Fix this query so it correctly finds branches with more than 5 orders.

    Solve it in your browser

These questions are part of full access.

The first chapters of every track are free. Full access is a one-time payment.

See pricing