Beruflich Dokumente
Kultur Dokumente
2) Of the database system environment, which of the following is not considered part of the people
component?
a.
b.
c.
d.
Salesmen
Administrators
Designers
End Users
4) IBM bought another database company in 2001. The DBMS that they got as part of the acquisition is
a) DB2 b) UDB c) SQL Anywhere
d) Informix
e) Teradata
5) A primary key
a.
b.
c.
d.
Is defined automatically
10) In the context of a database table, the statement "A determines B" indicates that
a.
b.
c.
d.
Knowing the value of attribute A you can not look up the value of attribute B.
You do not need to know the value of attribute A in order to look up the value of attribute B.
Knowing the value of attribute B you can look up the value of attribute A.
Knowing the value of attribute A you can look up the value of attribute B.
Question 2
1. What are the main objectives of data management?
Providing data definition and manipulation functions, and
facilities for recovery, concurrency, consistency, and security.
6.
Discuss the concept of data dictionary. What is its purpose and how is it implemented? Can
users update the data dictionary?
Data dictionary records all database elements (ie tables, indexes, etc.). Data dictionary is a
collection of system tables; users can read the data dictionary but may not update directly .
Question 3
4 PT
Problem 1
1. Using the table below, what data redundancies do you detect, and how could these
redundancies lead to anomalies? (be specific in your discussion dont just list the types of
anomalies)
What data redundancies do you detect, and how could these redundancies lead to anomalies?
Note that the manager named Holly B. Parker occurs three times, indicating that she manages three projects
coded 21-5Z,25-9T, and 29-2D, respectively. (The occurrences indicate that there is a 1:M relationship
between PROJECT and MANAGER: each project is managed by only one manager but, apparently, a
manager may manage more than one project.) Ms. Parker's phone number and address also occur three
times. If Ms. Parker moves and/or changes her phone number, these changes must be made more than once
and they must all be made correctly... without missing asingle occurrence. If any occurrence is missed
during the change, the data are "different" for the same person. After some time, it may become difficult to
determine what the correct data are. In addition, multiple occurrences invitemisspellings and digit
transpositions, thus producing the same anomalies. The same problems exist for the multiple occurrences of
George F. Dorts.
Problem 2
2. Given the table structure shown below, what problem(s) might you encounter if you deleted all
records with building_code KOM?
If the foreign key of the corresponding building_code KOM is in another table, we can not
delete those records without deleting there matching entries found in the other table. So
as a sequence, we should delete the records of building_code Kom from both tables.
Question 4
7 PT
Problems 1 to 7 of chapter 2 of your textbook (The relational database model) page 9596
Primary key
Foreign Key(s)
EMPLOYEE EMP_CODE
Prob.
BENEFIT
1
JOB_CODE
EMP_CODE + PLAN_CODE
EMP_CODE,
PLAN_CODE
JOB
JOB_CODE
PLAN
PLAN_CODE
NONE
NONE
Prob.
2
Prob.
3
Relational Schema
Table
Entity Integrity?
EMPLOYEE
BENEFIT
Yes
Yes
Each
EMP_CODE
values
are
are no nulls
Prob.
4
JOB
PLAN
Yes
EMPLOYEE
Prob.
5
Prob.
6
combination
of
and
PLAN_CODE
unique
and
there
Yes
Table
Explanation
Each
PLAN_CODE
unique and there are no nulls
Referential
Integrity
value
is
Explanation
Each JOB_CODE value in EMPLOYEE points to an
existing
JOB_CODE
value
in JOB.
Yes
BENEFIT
Yes
JOB
NA
PLAN
NA