Skip to content

Commit

Permalink
Merge branch 'gh-pages' of github.com:turingschool/backend-curriculum…
Browse files Browse the repository at this point in the history
…-site into gh-pages
  • Loading branch information
KatBrandt committed Jan 3, 2024
2 parents ea30082 + 31a4592 commit 7ebb8bc
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 7ebb8bc

Please sign in to comment.