Skip to content

ISRO Scientist/Engineer CSE 2018Databases › Normalization

ISRO Scientist/Engineer CSE 2018 PYQ: Considering the following table in a relational database : $$\begin{array}{|c|c|c|c|} \hline \textbf{Last…

Considering the following table in a relational database : $$\begin{array}{|c|c|c|c|} \hline \textbf{Last Name} & \textbf{Rank} & \textbf{Room} & \textbf{shift} \\ \hline \text{Smith} & \text{Manager} & \text{234} & \text{Morning} \\ \hline \text{Jones} & \text{Custodian} & \text{33} & \text{Afternoon} \\ \hline\text{Smith} & \text{Custodian} & \text{33} & \text{Evening} \\ \hline \text{Doe} & \text{Clerical} & \text{222} & \text{Morning} \\ \hline \end{array}$$

According to the data shown in the table, which of the following could be a candidate key of the table?

  1. A
    $\text{{Last Name}}$
  2. B
    $\text{{Room}}$
  3. C
    $\text{{Shift}}$
  4. D
    $\text{{Room, Shift}}$
    Correct answer

Answer

(D) $\text{{Room, Shift}}$

Approach

A candidate key must uniquely identify each row of the table. Check each option by seeing whether its value repeats across two or more rows; if it does, it cannot be a candidate key. A composite key is valid if the combination of its columns is unique for every row.

Reviewed by ISRO IQ Editorial Team.