Question · SQL and MySQL course · Module 2: Querying data (SELECT)
What DISTINCT is for
What is the DISTINCT keyword used for in a SELECT query?
Answer options
- It sorts the result in descending order
- It limits the number of rows to five
- It removes repeated values, leaving only the unique ones
- It joins two tables together
Show the answer
Correct answer:
- It removes repeated values, leaving only the unique ones