You are on page 1of 6

A rule that each foreign key value must match a primary key

value in the other relation is called as?


A rule that each foreign key value must match a primary key
value in the other relation is called as?
A rule that each foreign key value must match a primary key
value in the other relation is called as?
A rule that each foreign key value must match a primary key
value in the other relation is called as?
rule that each foreign key value must match a primary key
value in the other relation is called as?
rule that each foreign key value must match a primary key
value in the other relation is called as?
QUIZ
1. A rule that each foreign key value must match a primary key value in the
other relation is called as:
A. Referential integrity constraint
B. Entity integrity constraint
C. Tuple constraint
D. Semantic integrity constraint

2. When setting up a database, you establish a rule that an employee's age must
be greater than 18. What best describes the rule you apply to this attribute?
A. Relational constraint
B. Domain constraint
C. Key constraint
D. Cardinality constraint

3. Which of the following cannot be used to modify the data in a database


A. Update
B. Insert
C. Delete
D. Drop

4. The term “attribute” refers to a _________ of a table.


A. Record
B. Column
C. Tuple
D. Key
5. Which constraints may be violated when performing a DELETE operation?
A. Domain constraints
B. Key constraints
C. Referential integrity constraints
D. Entity integrity constraints
Use this COMPANY relational database to answer the questions 6-8
6. Given the operation:
Insert <’Robert’, ‘F’, ‘Scott’, ‘94377553’, ‘1972-06-21’, 2365 Newcastle
Rd, Bellaire, TX’, M, 58000, ‘888665555’, 1> into EMPLOYEE
This operation violates:
A. Referential integrity constraints
B. Key constraints
C. Entity integrity constraints
D. None of the above

7. Given the operation:


Delete the WORKS_ON tuples with Essn = ‘333445555’
Choose the correct answer:
A. The result is acceptable.
B. The result is unacceptable.
C. We can enforce this constraint by rejecting the deletion as the result is
unacceptable.
D. None of the above.

8. Given the operation:


Insert <’Production’, 4, ‘943775543’, ‘2007-10-01’ into DEPARTMENT
This operation violates:
A. Domain constraints
B. Key constraints
C. Entity integrity constraints
D. Referential integrity constraints
Use this relational database to answer the questions 9-10
EMPLOYEE
EmpID Name Age Phone DNo
2300 Peterson 30 6562326561 2
2301 Charles 28 4523651852 1
2302 Xavier 33 5428640283 1

DEPARTMENT
DNo DName Location
1 Human Resources New York
2 Finance New York

9. Given the operation:


Insert <NULL, ‘Harry’, 25, 652562514, 1>
This operation violates:
A. Entity integrity constraints
B. Key constraints
C. Domain constraints
D. Referential integrity constraints

10. Given the operation:


Update the DNo of the EMPLOYEE tuple with EmpID = ‘2300’ to 1
What is the result?
A. Unacceptable, because it violates referential integrity constraints.
B. Acceptable.
C. Unacceptable, because it violates entity integrity constraints.
D. None of the above.

11. If two or more constraints are violated by using insert operation then by
default:
A. The insert is accepted.
B. The insert is permanently blocked.
C. The insert is changed to update operation.
D. The insert is rejected.
12. The constraints violated when the given value of attribute is not included in
the corresponding domain is:
A. Key constraints
B. Domain constraints
C. Entity integrity constraints
D. Referential integrity constraints

You might also like