Match the SQL clause
Exercise and reference answers
- Matching pairs
- Left
- WHERE
- Right
- Enforces a condition
- Left
- DISTINCT
- Right
- Shows each value only once
- Left
- ORDER BY
- Right
- Sorts the result rows
- Left
- GROUP BY
- Right
- Gathers rows sharing a value
- Left
- BETWEEN
- Right
- A range including its ends
- Left
- IN
- Right
- Matches any value in a list
- Instructions
- Match each clause on the left to what it does.
Explanation
_Source: syllabus Computer Science, Ch 9 'Structured Query Language (SQL)'_