Netflix-style Company ChallengeBeginnerVerified answerSQLite live

Content Catalog

Return title and genre for all movies, ordered alphabetically by title.

  • Sorting

Challenge brief

Understand the request

Content Strategy The content team wants a quick catalog snapshot before a genre-diversity review meeting.

List every title in the catalog with its genre.

Return

  • title
  • genre

Constraints

  • Return every catalog title
  • Order alphabetically by title

Data you will use

Review the relevant tables before deciding how to join, filter, or aggregate them.

movies

  • movie_idINTEGER
  • titleVARCHAR(100)
  • genreVARCHAR(50)
  • release_yearINTEGER

Hints, when you need them

Open one clue at a time so you still do the reasoning.

Hint 1

Title and genre are catalog attributes.

Hint 2

No activity table is needed for the complete catalog.

Hint 3

Project both fields and sort by title.

Verified SQL answer

Attempt the problem first, then compare structure and reasoning—not just syntax.

Reveal solution and explanation
SELECT title, genre FROM movies ORDER BY title

Why this works

A single-table SELECT from movies. ORDER BY title gives the alphabetical listing the content team expects.

Success check

Returns the complete deterministic result for content catalog

Expected result

Use this output to verify values, aliases, ordering, and row count.

titlegenre
DarkSci-Fi
ExtractionAction
Money HeistCrime
NarcosCrime
Quiet PlanetDocumentary
Stranger ThingsSci-Fi
The CrownDrama

Learn the concepts behind this answer

Strengthen your understanding with these targeted learning topics:

Continue practicing

SQL Interview Practice

Return to the complete interview preparation experience.