Learn with Abdou

Chapter 7 · Concept 2 of 6 · Practice

Never borrowed or not returned?

LEFT JOIN and the unmatched row · level 3 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

Never borrowed or not returned? · LEFT JOIN and the unmatched row · level 3 of 6

How many rows come back?

Level 3: Predict the result · Exercise 1 of 1

There are 45 tools and 120 loans, and 10 tools have never been borrowed. Before you run it, how many rows does this query return?

SELECT COUNT(*) AS rows_returned
FROM tools t
LEFT JOIN loans l ON l.tool_id = t.id;
The query. Predict before you run it.

Data: Twin Ports Tool Library.

Opens once your prediction is right, or after the worked answer.

Query results

The real result appears here after you run it.

The real result appears here after you run it.

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.