Docsity

4 Questions for Database Management Systems - Midterm Exam | MIS 310, Exams of Introduction to Database Management Systems

Toggle sidebar
bg1
MIS 310, Sample Midterm, Fall 2001
PART I (true/false)
1) Supertype entity is always mandatory to a subtype entity (T/F)
2) No foreign keys in a bridge entity are a part of the primary key of a bridge entity (T/F)
3) Single-user database typically does not have concurrency control mechanisms (T/F)
4) Bridge (composite entities) are implemented only to resolve binary relationships (T/F)
5) If both entities are mandatory in a 1-to-1 relationship, they can often be merged into
one entity (T/F)
PART II
Consider the following file
PATIENT
_ID
PAT_NAME PHYS_
ID
PHYSICIAN_
NAME
PATIENT_
ROOM
PHYSICIAN_ADDRESS PHYSICIAN_
PHONE
PHYSICIAN
_OFFICE_
EXTENSION
U001 JOHN
SMITH
123 Robert Moretti 101 1001 Oak Road, Fairfax, Va 201-765-123 153
U002 KEVIN
DYSON
123 Robert Moretti 117 1001 Oak Road, Fairfax, Va 201-765-123 153
U003 STEVE
BROWN
141 Lisa Maddox 101 1222 Lee Highway, Burke, Va 44-1-585-88 222
U004 JIM LOW 152 Jane List 155 1299 Malone Ct., Frederick, Md 22-787-9935 528
U005 BILL SIMS 165 John Mote 122 44 M Street, Washington D.C. 24-887-6687 344
U006 BILL SIMS 152 Jane List 155 1299 Malone Ct., Frederick, Md 22-787-9935 528
a) Disclose one example of data redundancy in the file above. Support your choice with
a short explanation
b) Explain, using an example, how your chosen instance of data redundancy may lead to
future insertion anomaly.
c) Explain, using an example, how your chosen instance of data redundancy may lead to
future modification anomaly
d) Are the two occurrences of value "Bill Sims" in the column PAT_NAME an example
of a data redundancy or not? Explain why.
e) Eliminate data redundancies by splitting the file above into two relational database
tables. List both tables and their columns in the following format
TABLE(column1, column2, …, columnN) Underline the primary keys.
1
pf2

Partial preview of the text

Download 4 Questions for Database Management Systems - Midterm Exam | MIS 310 and more Exams Introduction to Database Management Systems in PDF only on Docsity!

MIS 310, Sample Midterm, Fall 2001 PART I (true/false)

  1. Supertype entity is always mandatory to a subtype entity (T/F)
  2. No foreign keys in a bridge entity are a part of the primary key of a bridge entity (T/F)
  3. Single-user database typically does not have concurrency control mechanisms (T/F)
  4. Bridge (composite entities) are implemented only to resolve binary relationships (T/F)
  5. If both entities are mandatory in a 1-to-1 relationship, they can often be merged into one entity (T/F) PART II Consider the following file PATIENT ID PAT_NAME PHYS ID PHYSICIAN_ NAME PATIENT_ ROOM PHYSICIAN_ADDRESS PHYSICIAN_ PHONE PHYSICIAN OFFICE EXTENSION U001 JOHN SMITH 123 Robert Moretti 101 1001 Oak Road, Fairfax, Va 201-765-123 153 U002 KEVIN DYSON 123 Robert Moretti 117 1001 Oak Road, Fairfax, Va 201-765-123 153 U003 STEVE BROWN 141 Lisa Maddox 101 1222 Lee Highway, Burke, Va 44-1-585-88 222 U004 JIM LOW 152 Jane List 155 1299 Malone Ct., Frederick, Md 22-787-9935 528 U005 BILL SIMS 165 John Mote 122 44 M Street, Washington D.C. 24-887-6687 344 U006 BILL SIMS 152 Jane List 155 1299 Malone Ct., Frederick, Md 22-787-9935 528 a) Disclose one example of data redundancy in the file above. Support your choice with a short explanation b) Explain, using an example, how your chosen instance of data redundancy may lead to future insertion anomaly. c) Explain, using an example, how your chosen instance of data redundancy may lead to future modification anomaly d) Are the two occurrences of value "Bill Sims" in the column PAT_NAME an example of a data redundancy or not? Explain why. e) Eliminate data redundancies by splitting the file above into two relational database tables. List both tables and their columns in the following format TABLE(column1, column2, …, columnN) Underline the primary keys. 1

f) draw a relational schema for tables from question e) PART III The following are the requirements statement of an airline company. REQIREMENTS: An Airport has an airport code, name, city, state and landing fee. Airport code is unique. An Airplane has an airplane ID, airplane type, total number of seats, and a company that manufactured it. Airplane ID is unique. A Flight has a unique number and the information regarding the days of the week on which it is available [there can be multiple days]. For example: flight number 1211 can be available on Monday, Tuesday, Friday and on Sunday. Also, for every flight we want to keep track of scheduled departure and arrival time. Those times are same for every day of the week flight is available on. An airplane can land in some airports ; an airport can support landing of some airplanes. Every airplane can land in at least one airport. Every airport supports landing of at least two types of airplanes. An airplane can be assigned to several flights. Every flight must have one and only one airplane assigned to it, but not every airplane needs to be assigned to a flight. Every flight is scheduled to arrive at an airport. Every flight is scheduled to depart from an airport. There may be any number of flights (more than zero) scheduled to arrive and depart at each airport. 1) List the entities and their attributes, specifying key attributes and multi-valued attributes. (Do not worry about creating weak entities for multi-valued attributes. Just make sure to recognize and note the existence of multi-valued attributes) 2) List all the Relationships among the entities by drawing an individual E-R diagram for each relationship (if there is more than one relationship between the same two entities use the same diagram). Make sure to mark types (1:1 or 1:M or M:N), cardinality, participation constraints (optional or mandatory) for each side of the relationship (optional or mandatory). Include attributes in the diagrams and make sure to use double line notation for multi-valued attributes. State any assumptions you make clearly. If you use a different notation from what was taught in class, describe it clearly. 3) Draw a complete E-R diagram by merging the diagrams from the problem 5. 4) Draw a relational schema corresponding to the E-R diagram created in question 3. 2