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:
- SELECT
- DISTINCT
- miasto
- FROM czytelnicy