Skip to content

Commit 5c0f935

Browse files
feat: Query shows all 5 guest by corresponding records in the checked out items table
1 parent 2d2fe21 commit 5c0f935

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lesson_25/db/db_app/src/main/resources/queries/brooklynharden/brooklynharden.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ INNER JOIN media_items ON checked_out_items.item_id = media_items.id
1313
GROUP BY
1414
guests.name;
1515

16+
17+
SELECT guests.name, checked_out_items.*
18+
FROM guests
19+
LEFT JOIN checked_out_items ON guests.email = checked_out_items.email
20+
GROUP BY guests.name;
21+
22+

0 commit comments

Comments
 (0)