Professional Documents
Culture Documents
Answers Key
ANN.1
Question #1: 10 marks
1. A database is a very large software system used for
processing related data. F
2. The Internal Schema of the three-schema architecture
describes the views of different user groups. F
3. The External Schema of the three-schema architecture
describes the storage structure. F
4. The Conceptual Schema of the three-schema
architecture is a high-level description of the whole
database. T
5. The schema changes more often than the data. F
6. Database systems are program-data independent. T
7. A DBMS is generalized software for implementing and
maintaining a computerized database. T
8. A Data Definition Language (DDL) is not a component
of a DBMS. F
9. A Data Manipulation Language (DML) is a component of
a DBMS. T
10. Typical database users include database designers,
database administrators, end-users, and application
programmers. T
ANN.2
Question #2: 5 marks
CLASS(Course#, Section#, InstructorName, Semester,
Building#, Room#, TimePeriod, Weekdays, CreditHours)
This represents classes taught in a university, with unique
Section#. Identify what you think should be various
candidates keys, and write in your own words the
constraints under which each candidate key would be valid.
Answers:
{Section#}
{Semester, Building#, Room#, TimePeriod, Weekdays} if
the same room can not be used at the same time by
more than one course during a particular semester.
{InstructorName, Semester} if an instructor can teach at
most one course during each semester.
{Course#, Section#, Semester} if the sections of a
particular course are numbered 1,2,3, … .
{Section#, Semester} if all sections of any course have
unique numbers during a particular semester only.
ANN.3
Question #3: 14 marks
Solution 1
(1,N) operates
(1,1)
DIVISION DEPARTMENT
(0,1) (0,1)
(0,1)
EMPLOYEE
(1,N) is (0,N)
PROJECT assigned
to
ANN.4
Question #3: 14 marks
Solution 2
1 operates
N
DIVISION DEPARTMENT
1 1 1
N 1
1
EMPLOYEE
N is N
PROJECT assigned
to
ANN.5
Question #4: 10 marks
SSN
i EMPLOYEE
(0,N)
has
(1,1)
DEPENDENT
SSN Course#
ii STUDENT
(1,N)
takes
(0,N)
COURSE
ANN.6
Question #5: 10 marks
Solution 1
Name Year
(1,N) (1,1)
CUSTOMER owns CAR
(0,N)
Driver
Damage Date
ACCIDENT makes
(1,1)
ANN.7
Question #5: 10 marks
Solution 2
Name Year
1 N
CUSTOMER owns CAR
Driver
Damage Date
ACCIDENT makes
N
ANN.8
Question #6: 11 marks
a: Accepted
b: Violates
Referential integrity constraint
DNUMER=2 does not exist in DEPARTMENT
c: Violates both
Key constraint
DNUMBER=4 already exists in DEPARTMENT
Referential integrity constraint
SSN=943775543 does not exist in EMPLOYEE
d: Violates both
Entity integrity constraint
PNO is null which is part of the PK of WORKS_ON
Referential integrity constraint
SSN=677678989 does not exist in EMPLOYEE
ANN.9
Question #6: 11 marks
e:
Accepted
f:
Accepted
g:
Violates
Referential integrity constraint
SSN=987654321 is linked to many tuples in other tables
h: Violates
Referential integrity constraint
PNAME=‘ProductX’ is linked to many tuples in WORKS_OB
table
i: Accepted
j: Violates
Referential integrity constraint
The is no tuple in EMPLOYEE with SSN=943775543
k: Accepted
ANN.10