Skip to content
KALANBLON
Show contents

Chapter 3 of 7 · 10 min

Quiz: linking tables

Joins, subqueries and CTEs: let's check that you can link tables to answer a question. You need 70% correct answers.

Quiz

6 questions · pass mark: 70%

  1. 1.A customer has placed no orders. Do they appear in the result of customers JOIN orders?

    One answer

  2. 2.Complete to list the customers with no orders.

    Complete the code

    SELECT c.name
    FROM customers AS c
    LEFT JOIN orders AS o ON o.customer_id = c.id
    WHERE o.id IS ____;
  3. 3.What does the error "ambiguous column name: id" mean?

    One answer

  4. 4.What is WITH name AS (…) for?

    One answer

  5. 5.The subquery in "WHERE id NOT IN (SELECT customer_id FROM orders)" returns a NULL. What happens?

    One answer

  6. 6.Which statements about COUNT are true? (several answers)

    Several answers possible

Your progress is saved on this device. Create a free account to keep your progress on all your devices.