List Product Categories

The shop's product catalogue has several products in the same category, listed more than once. Write a query returning each distinct category name that appears in products, in alphabetical order.

query.sql
Loading editor…

Test cases

  • Full result: distinct categories, alphabetical
  • Returns exactly three categories

Use Run to explore freely against the sample database. Use Submit to grade your query against every test case, including any hidden ones.