Question 11 of 12intermediate🔍 AnalyzeCase Study8 marks

For the above given database STUDENT-PROJECT, answer the following:

Student Project Database Table: STUDENT

Roll NoNameClassSectionRegistration_ID
11MohanXI1IP-101-15
12SohanXI2IP-104-15
21JohnXII1CS-103-14
22MeenaXII2CS-101-14
23JuhiXII2CS-101-10

Table: PROJECT

ProjectNoPNameSubmissionDate
101Airline Database12/01/2018
102Library Database12/01/2018
103Employee Database15/01/2018
104Student Database12/01/2018
105Inventory Database15/01/2018
106Railway Database15/01/2018
(a)

Name primary key of each table.

Answer

Primary key of STUDENT table is Roll No and Primary key of PROJECT table is ProjectNo.

(b)

Find foreign key(s) in table PROJECT-ASSIGNED.

Answer

The foreign key(s) in table PROJECT-ASSIGNED would be Roll No (referencing STUDENT table) and ProjectNo (referencing PROJECT table).

(c)

Is there any alternate key in table STUDENT? Give justification for your answer.

Answer

Yes, Registration_ID is an alternate key in STUDENT table. Justification: Registration_ID has unique values for all records (IP-101-15, IP-104-15, CS-103-14, CS-101-14, CS-101-10). Since it is a candidate key (unique and non-null) but not chosen as the primary key, it becomes an alternate key.

(d)

Can a user assign duplicate value to the field RollNo of STUDENT table? Justify.

Answer

No, a user cannot assign duplicate value to RollNo. Justification: RollNo is the primary key of STUDENT table. Primary key constraint ensures uniqueness - no two records can have the same primary key value. This maintains entity integrity in the database.

Explanation

This question tests understanding of relational database concepts - primary keys, foreign keys, alternate keys, and constraints. Part (a) requires identifying unique identifiers in each table. Part (b) requires understanding that PROJECT-ASSIGNED is a linking table connecting STUDENT and PROJECT. Part (c) tests knowledge that alternate keys are candidate keys not selected as primary key. Part (d) tests understanding of primary key constraints.