CBSE · 083Class XII · 2023Section E1 mark

Question 34(1)

30 March 2023 · Computer Science (083)

The school has asked their estate manager Mr. Rahul to maintain the data of all the labs in a table LAB. Rahul has created the table and entered data of 5 labs.

Table : LAB

LABNOLAB_NAMEINCHARGECAPACITYFLOOR
L001COMPUTERVIJAY30II
L002CHEMISTRYHARSH20I
L003BIOLOGYSONIA20I
L004ENGLISHGAGAN40II
L005MATHSMEENU35III

(i) Identify the columns which can be considered as Candidate keys.

Answer

Candidate keys : LABNO and LAB_NAME

Explanation

Both LABNO and LAB_NAME contain unique, non-null values for every row, so either could serve as the primary key — that makes both candidate keys.