backendgym backendgym · reps Sign in with GitHubSign in

05Find translated books

sql-querying / reps/05/README.md

Translators are rows in authors. Return the title and year of every book translated by someone whose country is Japan. Get the matching book IDs from a subquery. Order by year, newest first, then by title.

Expected: 2 rows, Tomb of Sand (2022) and then Love in the Big City (2021). Two translators match, so the subquery returns two IDs, and = will fail where IN won't.

After the rep
  1. 1 What did Postgres say when = met two translator IDs, and with which data would = have run without complaint?