1. When transforming an entity to a relation, the identifier of the entity type becomes the primary key of the corresponding relation.
True or False?
2. To transform a one-to-many relationship into relations, we add the primary key attribute (or attributes) of the entity on the one side of the relationship as a foreign key in the relation that is on the many side of the relationship.
True or False?
Q1. True
Since identifier is an attribute which is unique and determines all other attribute of entity.
Q2. True.
If primary key of entity on many side is added as foreign key into entity on one side, then the added foreign key will have multivalued attribute instance which will disturb the 1NF of database. Thus adding primary key of entity on one side as foreign key into table of entity on many side will be a single valued attribute instance and will not violate 1NF.
If you have any questions comment down. Please don't simply downvote and leave. If you are satisfied with answer, please? upvote thanks
Get Answers For Free
Most questions answered within 1 hours.