(These are intended to give you a sense for the types of multiple choice questions you might get. This is
NOT a full exam – the actual exam is LONGER.)
Multiple Choice
1. The primary key of the relation JOB is the attribute JobNumber. Two other attributes of JOB are
ContractorName and ContractorAddress. There is a functional dependency between ContractorName
and ContractorAddress (such that contractor name determines contractor address). In what normal
form is the JOB relation?
2. The primary key of the relation SALE is the attribute SaleNumber. Two other attributes of SALE are
VendorName and VendorLocation. The VendorLocation is functionally dependent on the VendorName.
This is an example of a relation that has a:
3. An attribute in a relation of a database that serves as the primary key of another relation is called a:
a. link attribute.
b. partial key.
c. foreign key.
d. link key.
e. foreign attribute.
1
5. The foreign key corresponding to the GALLERY - PAINT relationship should have the following
constraint
8. If you were writing a SELECT statement and wanted to show all the data in a given row, you would
write:
a. SELECT ALL
b. SELECT *
c. SELECT TOTAL ROW
d. SELECT DISTINCT ROW
e. None of the above
2
Short answer
_____________________________________________________________________________________
2. Transform the E-R diagram into a set of relations in 3NF. Be sure to include the foreign key constraints.