Follow a loan through its keys
three-table joins, and which branch is which · level 2 of 6
Opening your saved work…
Sign in to save across devices → · Download your guest work before switching accounts.
Follow a loan through its keys · three-table joins, and which branch is which · level 2 of 6
The tool the loan points at
Loans 1 to 5 with the member's first name and the tool's name. The second join is missing the column it should follow.
Finish line: 5 rows · columns loan_id, member_first_name, tool_name · in the order the question gives
Data: Twin Ports Tool Library.
SELECT l.id AS loan_id, m.first_name AS member_first_name, t.name AS tool_name
FROM loans l
JOIN members m ON m.id = l.member_id
JOIN tools t ON t.id =
WHERE l.id <= 5
ORDER BY l.id;
- Blank 1 of 1: the loan's column that points at a tool
Query results
Check to see the result here.Check to see the result here.
Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.