Skip to content

Commit

Permalink
Simplify multi-join lesson practice problems
Browse files Browse the repository at this point in the history
  • Loading branch information
juliet-e authored Jan 2, 2024
1 parent 31bb558 commit 31a4592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module2/lessons/joins_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ The takeaway here is, if we're not careful with our joins, it may result in some
Try implementing some of these queries on your own. You may want to try writing them out in SQL first, before translating them to ActiveRecord.

* Return a unique list of songs that appear on at least 1 playlist.
* Return the names of playlists that have at least 3 distinct artists.
* Return the names of artists that appear on at least 3 different playlists.
* Return the names of the artists with songs on the "summer rewind" playlist. Use an additional association in the Artist model (i.e. join the "Easy Way").
* Return the names of the artists with songs on the "summer rewind" playlist, but this time don't use an additional association (try it the "Hard Way").

## Checks for Understanding
1. When would we want to use multiple joins in a query?
Expand Down

0 comments on commit 31a4592

Please sign in to comment.