Type the INTERSECT skeleton (two union-compatible SELECTs):
Type the INTERSECT skeleton (two union-compatible SELECTs):
Answer
SELECT student_id FROM registrations WHERE section_id = 2711 INTERSECT SELECT student_id FROM registrations WHERE section_id = 2712;
Each SELECT returns one student_id column (union-compatible); INTERSECT keeps ids present in both result sets — students in both sections.