...
TNPSC-2012-Polytechnic-CS
February 13, 2025
GATE-2024-CS1(Forenoon)
February 14, 2025
TNPSC-2012-Polytechnic-CS
February 13, 2025
GATE-2024-CS1(Forenoon)
February 14, 2025

GATE-2024-CS1(Forenoon)

Question 22
Which of the following statements about a relation R in first normal form (1NF) is/are TRUE ?
A
R can have a multi-attribute key

B
R cannot have a foreign key
C
R cannot have a composite attribute
D
R cannot have more than one candidate key
Question 22 Explanation: 
Multi-attribute Key: This refers to a key in a relation (table) that consists of more than one attribute (column). In other words, it’s a combination of attributes that uniquely identifies each tuple (row) in the relation. For example, if you have a table of employees and you use both “Employee ID” and “Department ID” together as the key, it would be a multi-attribute key because it involves more than one attribute.

Composite Attribute: This refers to an attribute in a relation that is composed of multiple sub-attributes. It’s essentially a single attribute that represents a grouping of related information. For instance, if you have an “Address” attribute in a table that includes sub-attributes like “Street”, “City”, “State”, and “Zip Code”, then “Address” is a composite attribute because it contains multiple components.

Correct Answer: C
Question 22 Explanation: 
Multi-attribute Key: This refers to a key in a relation (table) that consists of more than one attribute (column). In other words, it’s a combination of attributes that uniquely identifies each tuple (row) in the relation. For example, if you have a table of employees and you use both “Employee ID” and “Department ID” together as the key, it would be a multi-attribute key because it involves more than one attribute.

Composite Attribute: This refers to an attribute in a relation that is composed of multiple sub-attributes. It’s essentially a single attribute that represents a grouping of related information. For instance, if you have an “Address” attribute in a table that includes sub-attributes like “Street”, “City”, “State”, and “Zip Code”, then “Address” is a composite attribute because it contains multiple components.

Leave a Reply

Your email address will not be published. Required fields are marked *