SQL Practice Question Paper

2 questions. Some questions have more than one correct answer. Submit each one to see the right answer and why. New to the topic? Read the SQL guide.

1Not attempted

orders has 100 rows and 5 of them have a NULL customer_id. customers.id is the primary key, and every non-NULL customer_id matches a customer. How many rows does SELECT * FROM orders o LEFT JOIN customers c ON o.customer_id = c.id return?

Select one option
Medium
2Not attempted

Which statements about WHERE and HAVING are true? Select all that apply.

Select all that apply

Select all correct options
Easy