Never borrowed or not returned? · LEFT JOIN and the unmatched row · level 2 of 6
Members who never borrowed
Level 2: Fill the blank · Exercise 1 of 1
The branch manager wants the members who have never taken a loan, so she can send them a welcome offer. One piece of the gap test is missing. Fill it in.
Finish line:11 rows · columns first_name, last_name · in the order the question gives
Data: Twin Ports Tool Library.
Fill the blankOpening the database…
SELECT m.first_name, m.last_name
FROM members m
LEFT JOIN loans l ON l.member_id = m.id
WHERE l.id
ORDER BY m.last_name, m.first_name;
Blank 1 of 1: the test that finds a row with no match