In: Computer Science
Question 1
[multiple answer] a relation in mathematics
Question 2
[multiple answers] in the relational model, relations are commonly used
Question 3
[multiple answers] constraints on relations in normal RDBMSs (not considering MS access)
Question 4
[multiple answers] which of the following constraints can be violated by inserting a record into a database table?
Question 5
[multiple answers] which of the following constraints can be violated through a deletion of a record from a database table?
Question 6
[multiple answers] assume a table A with primary key aid, and a table B with primary key bid and foreign key aid which references aid in table A. Which of the following operations can result in a violation of the referential integrity (foreign key) constraint?
Question 7
[multiple answers] referentially triggered actions
Question 8
[multiple answers] a 1-to-1 relationship in the entity-relationship model can be represented in the relational model
Question 9
[multiple answers] a 1-to-many relationship in the entity-relationship model can be represented in the relational model
Question 10
[multiple answers] a many-to-many relationship in the entity-relationship model can be represented in the relational model
The answers to the questions are as follows:
QUESTION 1. a) Is much like a database table except that relations are sets, i.e. Don't allow duplicates whereas DBMSs may return tables with duplicates
QUESTION 2. b) in the relational model, relations are commonly used to represent entities of the ER model and the relationships of the ER model
QUESTION 3. b) and c)Are tools for filtering out records that should not get inserted
QUESTION 4. a) Primary key constraint and c) Referential integrity (foreign key) constraint
QUESTION 5. a) Primary key constraint and c) Referential integrity (foreign key) constraint
QUESTION 6. b) Insertion of a record into table B and c) Deletion of a record from table A
QUESTION 7. a) May happen as a result of a deletion of a record because its primary key value is referenced by a foreign key value in a different relation. and b) May happen as a result of a deletion of a record because it has a foreign key value that references a primary key value in a different relation.
QUESTION 8. b) By adding a foreign key to one of the tables, which references the primary key of the other table and c) by creating a separate table that has two foreign keys, which reference the primary keys of the two tables that represent the entities
QUESTION 9 b) by adding a foreign key to the table on the "many" side of the relationship, which references the primary key of the other table and d) By creating a separate table that has two foreign keys, which reference the primary keys of the two tables that represent the entities
QUESTION 10. c) By creating a separate table that has two foreign keys, which reference the primary keys of the two relations that represent the entities