Match List-I with List-II
List-I List-II (A) Retrieve all rows with duplicates removed (I) GROUP BY (B) Filter rows based on condition (II) ORDER BY (C) Aggregate data into groups (III) DISTINCT (D) Sort rows in ascending or descending order (IV) WHERE
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) Retrieve all rows with duplicates removed | (I) GROUP BY |
| (B) Filter rows based on condition | (II) ORDER BY |
| (C) Aggregate data into groups | (III) DISTINCT |
| (D) Sort rows in ascending or descending order | (IV) WHERE |
Solution
✅ Correct Option: 3
| List I | List II |
|---|---|
| (A) Retrieve all rows with duplicates removed | (III) DISTINCT |
| (B) Filter rows based on condition | (IV) WHERE |
| (C) Aggregate data into groups | (I) GROUP BY |
| (D) Sort rows in ascending or descending order | (II) ORDER BY |
WHERE filters individual rows before grouping, while GROUP BY collects rows into groups for aggregate functions such as COUNT or SUM.
ORDER BY only sorts the output (ASC by default, DESC for descending) and does not group or filter.
Related questions:
2026: 23 May Shift 1