Homework Six: Database Normalization, Assignments of Introduction to Database Management Systems

A non-normalized database table for two different scenarios: a healthcare center and a jobs database. The tasks require identifying dependencies, determining primary keys, completing normalization processes, and creating relational schemas for the normalized tables.

Typology: Assignments

Pre 2010

Uploaded on 02/10/2009

koofers-user-6m3-1
koofers-user-6m3-1 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Your Name _______________________________
Homework Six
(4 points total)
1) Consider the following non-normalized table (2 points)
HEALTH_CENTER_TABLE
DRID DrName DrSpecialty PtID PtName PtInsCoID PtInsCoName NextApptDate
1 Dr. Joe General 111 Mia I1 Max Profit June 1
1 Dr. Joe General 222 Pat I1 Max Profit June 2
1 Dr. Joe General 333 Pat I2 Heartless June 3
2 Dr. Sue Ob 333 Pat I2 Heartless June 7
3 Dr. Kim OB 555 Lisa I3 Bottom line June 2
3 Dr. Kim OB 111 Mia I1 Max Profit June 3
4 Dr. Kim Orthopedic 555 Lisa I3 Bottom Line June 9
This table is based on following requirements:
1) Each doctor has only one specialty
2) A patient is insured through one insurance company.
3) A patient can have many appointments scheduled.
4) A patient can have only one appointment scheduled with a particular doctor.
Complete the following tasks:
a) List all the dependencies (desireable, partial and transitive)
b) Determine the primary key for the non-normalized table
c) Complete the normalization process (show 2nd and 3rd normal forms)
d) Create the relational schema for your final set of normalized tables
2) Consider the following non-normalized table (2 points)
JOBS
EID Ename PID Pdescr SID Sname StartYear
MD McDonald 1 Burger Flipper 111 Joe 1998
MD McDonald 2 Manager 222 Mike 1997
BK BurgerKing 1 Manager 333 Sue 1998
BK BurgerKing 2 Burger Flipper 222 Mike 1998
BK BurgerKing 2 Burger Flipper 444 Bob 1999
BO TacoBell 1 Taco Stuffer 111 Joe 1999
EID = Employer Id
Ename = Employer Name
PID = Position ID
Pdescr = Position Description
SID = Student ID
Sname = Student Name
StartYear = Year student began working for employer
pf2

Partial preview of the text

Download Homework Six: Database Normalization and more Assignments Introduction to Database Management Systems in PDF only on Docsity!

Your Name _______________________________

Homework Six

**(4 points total)

  1. Consider the following non-normalized table (2 points)** HEALTH_CENTER_TABLE DRID DrName DrSpecialty PtID PtName PtInsCoID PtInsCoName NextApptDate 1 Dr. Joe General 111 Mia I1 Max Profit June 1 1 Dr. Joe General 222 Pat I1 Max Profit June 2 1 Dr. Joe General 333 Pat I2 Heartless June 3 2 Dr. Sue Ob 333 Pat I2 Heartless June 7 3 Dr. Kim OB 555 Lisa I3 Bottom line June 2 3 Dr. Kim OB 111 Mia I1 Max Profit June 3 4 Dr. Kim Orthopedic 555 Lisa I3 Bottom Line June 9 This table is based on following requirements:
  2. Each doctor has only one specialty
  3. A patient is insured through one insurance company.
  4. A patient can have many appointments scheduled.
  5. A patient can have only one appointment scheduled with a particular doctor. Complete the following tasks: a) List all the dependencies (desireable, partial and transitive) b) Determine the primary key for the non-normalized table c) Complete the normalization process (show 2nd^ and 3rd^ normal forms) d) Create the relational schema for your final set of normalized tables 2) Consider the following non-normalized table (2 points) JOBS EID Ename PID Pdescr SID Sname StartYear MD McDonald 1 Burger Flipper 111 Joe 1998 MD McDonald 2 Manager 222 Mike 1997 BK BurgerKing 1 Manager 333 Sue 1998 BK BurgerKing 2 Burger Flipper 222 Mike 1998 BK BurgerKing 2 Burger Flipper 444 Bob 1999 BO TacoBell 1 Taco Stuffer 111 Joe 1999 EID = Employer Id Ename = Employer Name PID = Position ID Pdescr = Position Description SID = Student ID Sname = Student Name StartYear = Year student began working for employer

Your Name _______________________________ This table is based on following requirements: a) Within each employer there are multiple positions available. b) Positions have a unique Id within the employer only (two positions from two different employers can have the same PID) and a non-unique description. c) More than one student can work on the position of the same type d) A student can work for many employers, but can hold only one position within that employer. Complete the same tasks as in the first problem