SQL practice: Subqueries

Chapter 16 · 9 questions · included in full access

  1. Question 1 · easy

    Find products costing more than the average product price.

    Solve it in your browser
  2. Question 2 · easy

    Find customers who have at least one Cancelled order.

    Solve it in your browser
  3. Question 3 · medium

    Find employees earning more than the company average salary.

    Solve it in your browser
  4. Question 4 · medium

    Find products that cost more than the most expensive Accessory.

    Solve it in your browser
  5. Question 5 · medium

    Find branches whose order count is above 5, using a subquery in FROM.

    Solve it in your browser
  6. Question 6 · medium

    Find the customer(s) who placed the very first order (earliest order_date).

    Solve it in your browser
  7. Question 7 · medium

    Find employees whose salary equals the maximum salary in the company.

    Solve it in your browser
  8. Question 8 · hard

    Find all orders placed on the same date as order 1.

    Solve it in your browser
  9. Question 9 · hard

    Find products that cost more than every Adhesive. The query fails with 'more than one row returned by a subquery'. Fix it.

    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