Which of the following SQL queries deletes all tuples in the teacher relation…

PYQ ISRO Scientist/Engineer SC 2023

Which of the following SQL queries deletes all tuples in the teacher relation for teachers associated with a department located in the building named 'CSE', as recorded in the department relation?

  1. A.

    DELETE FROM teacher
    WHERE dept_name IN 'CSE';

  2. B.

    DELETE FROM department
    WHERE building = 'CSE';

  3. C.

    DELETE FROM teacher
    WHERE dept_name IN (
    SELECT dept_name
    FROM department
    WHERE building = 'CSE');

  4. D.

    None of the above

Attempted by 534 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…