SQL practice: Aggregate Functions

Chapter 9 · 10 questions · included in full access

  1. Question 1 · easy

    How many employees are there?

    Solve it in your browser
  2. Question 2 · easy

    What is the most expensive product's price?

    Solve it in your browser
  3. Question 3 · medium

    What is the total quantity across all of order_items?

    Solve it in your browser
  4. Question 4 · medium

    What is the average salary in the company?

    Solve it in your browser
  5. Question 5 · medium

    How many orders are Delivered?

    Solve it in your browser
  6. Question 6 · medium

    How many different products have ever been ordered?

    Solve it in your browser
  7. Question 7 · medium

    What is the cheapest and most expensive product price, in one query?

    Solve it in your browser
  8. Question 8 · medium

    What is the total revenue of all order lines (quantity × unit price)?

    Solve it in your browser
  9. Question 9 · hard

    How many branches are there, and how many different regions do they cover? (One query, two numbers.)

    Solve it in your browser
  10. Question 10 · hard

    This query tries to find the percentage of products in each category, but integer division rounds it to 0. 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