SQL practice: INNER JOIN
Chapter 12 · 12 questions · included in full access
Question 1 · easy
Solve it in your browserShow order_id with the branch_name for each order.
Question 2 · easy
Solve it in your browserShow each employee_name next to their branch_name.
Question 3 · medium
Solve it in your browserShow product_name and quantity for every row in order_items.
Question 4 · medium
Solve it in your browserShow order_id, order_date and customer_name, only for Delivered orders.
Question 5 · medium
Solve it in your browserShow every employee earning over 50000, with their branch name.
Question 6 · medium
Solve it in your browserShow each order line with the product name and the line total (quantity × unit_price).
Question 7 · medium
Solve it in your browserShow customer_name and branch_name for every order.
Question 8 · medium
Solve it in your browserShow all stock transfers with the product name.
Question 9 · medium
Solve it in your browserList the employees working in the 'North' region, with their branch name.
Question 10 · medium
Solve it in your browserCount how many rows products joined to order_items returns. Why isn't it 14?
Question 11 · hard
Solve it in your browserShow each employee with their branch's city and region.
Question 12 · hard
Solve it in your browserThis query fails because 'customer_id' is ambiguous (it exists in both tables). Fix it.
These questions are part of full access.
The first chapters of every track are free. Full access is a one-time payment.
See pricing