SQL practice: INNER JOIN

Chapter 12 · 12 questions · included in full access

  1. Question 1 · easy

    Show order_id with the branch_name for each order.

    Solve it in your browser
  2. Question 2 · easy

    Show each employee_name next to their branch_name.

    Solve it in your browser
  3. Question 3 · medium

    Show product_name and quantity for every row in order_items.

    Solve it in your browser
  4. Question 4 · medium

    Show order_id, order_date and customer_name, only for Delivered orders.

    Solve it in your browser
  5. Question 5 · medium

    Show every employee earning over 50000, with their branch name.

    Solve it in your browser
  6. Question 6 · medium

    Show each order line with the product name and the line total (quantity × unit_price).

    Solve it in your browser
  7. Question 7 · medium

    Show customer_name and branch_name for every order.

    Solve it in your browser
  8. Question 8 · medium

    Show all stock transfers with the product name.

    Solve it in your browser
  9. Question 9 · medium

    List the employees working in the 'North' region, with their branch name.

    Solve it in your browser
  10. Question 10 · medium

    Count how many rows products joined to order_items returns. Why isn't it 14?

    Solve it in your browser
  11. Question 11 · hard

    Show each employee with their branch's city and region.

    Solve it in your browser
  12. Question 12 · hard

    This query fails because 'customer_id' is ambiguous (it exists in both tables). 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