backendgym backendgym · reps Sign in with GitHubSign in

03Judge a title lookup

sql-optimizing / reps/03/README.md

answer.sql was generated to find the one movie titled The Quiet Harbor. Read it first, then run it and compare with the expected result below. Fix the file.

Expected once fixed: 1 row. The shipped query returns 2.

After the rep
  1. 1 Which predicate made the lookup match more than one title, and which row gave it away?
  2. 2 Run EXPLAIN on the shipped LIKE. Did rep 2's index serve it, and what does your database's collation have to do with that?