Interview Questions/SQL/Not Boring Movies

Not Boring Movies

Preview mode. Log in to edit, run, submit, and save progress.

Medium

Not Boring Movies

You have a Cinema table. Write a SQL query to report all movies with an odd-numbered id and a description that is NOT 'boring'. Return the result ordered by rating in descending order.

Examples

Example 1

Movies with odd IDs are 1, 3, 5. ID=3 is boring so excluded. IDs 5 and 1 remain, sorted by rating descending.

Approach hint

Start with a simple approach, explain the trade-off, then move toward a cleaner or more scalable solution.

Common mistake

Skipping assumptions, edge cases, or trade-offs can make an otherwise good answer feel incomplete.

query.sql