Question 61

Consider the relation Emp-Dept with SSn as key. Ename | SSn (key) | EAddr | Dept. No. | Dept. Name | Dept. Manager | SSn

Consider the relation Emp-Dept with SSn as key. Ename | SSn (key) | EAddr | Dept. No. | Dept. Name | Dept. Manager | SSn Which of the following is (are) invalid operations (s)? (i) Inserting an employee without name and address. (ii) Inserting an employee with only SSn. (iii) Inserting a department with no employee. (iv) Inserting an employee without SSn.
  1. A(i)
  2. B(iv)
  3. C(iii) and (iv)
  4. D(ii) and (iii)
Show answerHide answer

Correct answer: (B) (iv)

Explanation

SSn is the primary key, and by entity integrity a key cannot be null. So inserting an employee without an SSn is invalid. Name and address may be null.

From DSSSB TGT Computer Science Practice Set 4

This is question 61 of DSSSB TGT Computer Science Practice Set 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.