UNION removes repeated rows from the combined result. UNION ALL keeps every row, including repeated ones. UNION ALL. The question says UNION clause only, and plain UNION does not keep duplicates. So option 3 is wrong. Consider the table 'STUDENT':
| Name | Class | DOB | Gender | City | Marks |
|---|---|---|---|---|---|
| Rohan | XI | 2008 | M | Delhi | 85 |
| Priya | XII | 2006 | F | Mumbai | 92 |
| Ankit | XI | 2007 | M | Delhi | 88 |
| Nidhi | XII | 2006 | F | Mumbai | 90 |
| Aarav | IX | 2009 | M | Kolkata | 78 |
| Simran | XI | 2007 | F | Chandigarh | 94 |
| Rahul | XII | 2006 | M | Pune | 80 |
From the above table 'STUDENT', which query will return all the students from class 'XI'?
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 |
Choose the correct answer from the options given below: