From the table 'Students' and 'Graduates' below:
Students
Student_ID FirstName LastName 1 Arun Singh 2 Ajay Verma 3 Ashi Kushwaha
Graduates
Graduate_ID FirstName LastName 1 Dhruv Manchandani 2 Ajay Verma 3 Alok Ranjan
If you want the names of the individuals who are listed in both the 'Students' and 'Graduates' tables, which SQL statement would you use?
From the table 'Students' and 'Graduates' below:
Students
| Student_ID | FirstName | LastName |
|---|---|---|
| 1 | Arun | Singh |
| 2 | Ajay | Verma |
| 3 | Ashi | Kushwaha |
Graduates
| Graduate_ID | FirstName | LastName |
|---|---|---|
| 1 | Dhruv | Manchandani |
| 2 | Ajay | Verma |
| 3 | Alok | Ranjan |
If you want the names of the individuals who are listed in both the 'Students' and 'Graduates' tables, which SQL statement would you use?
Solution
Option 3 uses an INNER JOIN, which keeps only the rows that have a matching row in both tables, and it selects only FirstName and LastName. This is the join-based pattern for getting names that appear in both tables.
Options 2 and 4: they refer to a second table (Graduates) without listing it in FROM or joining it, so they are invalid.
We believe the answer should be Option 1, since the INTERSECT on all columns returns only the row that is identical in both tables (2, Ajay, Verma), whereas Option 3 joins on ID alone, so it would also pair Arun with Dhruv and Ashi with Alok, and its unqualified FirstName and LastName columns would be ambiguous. However, NTA's final answer key (after all challenges) says Option 3.
Related questions:
2026: 13 May Shift 2
2025: 30 May Shift 2
2025: 27 May Shift 2
2026: 29 May Shift 2
2026: 13 May Shift 2
2026: 24 May Shift 1