Put in order · SQL and MySQL course · Module 2: Querying data (SELECT)

A query for cities without repeats

Arrange the elements in the correct order to build a query for the unique cities of readers (left to right):

Items to put in order

  • DISTINCT
  • FROM czytelnicy
  • SELECT
  • miasto
Show the answer

Correct order:

  1. SELECT
  2. DISTINCT
  3. miasto
  4. FROM czytelnicy