| General Instructions You received a unique random database specification (which pointed to this instruction page). You must follow these instructions for your received database specification. You must answer the following questions and create a normalized model in MySQL Workbench. The provided specification is different for each student. You must create the specification and ERD for the design you received. Database Model Conventions You must follow these conventions when you perform your homework. Failing to follow the conventions will be penalized per each mistake and may also constitute evidence of cheating. - Entity names: singular nouns (or noun phrase) written in CAPITAL LETTERS, using _ instead of space, must start with a two letter prefix with your first name and last name initials (e.g. if your name is John Doe, an entity name will be JD_PERSON)
- Attribute names: singular nouns (or noun phrase) written in CAPITAL LETTERS, using _ instead of space, must start with a two-letter prefix with your first name and last name initials (e.g. if your name is John Doe, an attribute name will be JD_FIRST_NAME)
- Relationship names: third person verbs (or verb phrase) written in lower case letters, using spaces. Do not use "has" or other generic names. Use a name that clarifies the meaning (even if contains entity names)
- Additional conventions might be specified by your instructor (e.g. prefix the attribute names with the entity name or abbreviation)
Report structure Your report must contain the following: - Assignment: D5
- Name: YOUR NAME
- Section: YOUR COURSE AND SECTION
- First Normal Form - Identify all rows
- Create a table with all rows identified for your data, eliminating the repeating value.
- Include the table in your report.
- You can create the table in the text editor you use to write the report. If the table is too wide to fit, you can use a smaller font or you can break the columns in two. Also, you may create the table in some other editor and take a picture, and include the picture.
- First Normal Form - Identify all columns
- Identify all the attributes (columns) in your data table. At this step, you must keep all the attributes in a single table.
- Be sure you divide the composite attributes. You must divide the composite attributes based on the typical use of such data. Try to anticipate how the customer will use the information.
- Include your table in the report.
- You can create the table in the text editor you use to write the report. If the table is too wide to fit, you can use a smaller font or you can break the columns in two. Also, you may create the table in some other editor and take a picture, and include the picture.
- First Normal Form - Dependencies
- Identify the primary key and its dependencies, partial dependencies and transitive dependencies.
- Draw the dependency diagram using any graphical editor (Powerpoint, Word, ...). Mark the PK with a different color. Mark distinctly the partial dependencies from the transitive dependencies.
- At this step you will have a single entity with all the attributes in the dependency diagram.
- Include the diagram in your report. You can include a picture of it.
- See the video for wide diagrams. You can write the name of the attributes vertically.
- Second Normal Form
- Convert the first normal form in second normal form. Draw the new dependency diagram. Include the 2NF diagram in your report.
- Third Normal Form
- Convert the second normal form in third normal form. Draw the new dependency diagram. Include the 3NF diagram in your report.
- Improved Third Normal Form
- How you can further improve the obtained diagram? Provide at least one improvement idea.
- ERD
- Draw the ERD using MySQL Workbench. Include a screenshot with the ERD in the report.
QUESTION: For this fictional scenario you must apply the instructions linked above. A hospital chain wants to model their appointment system. Their current appointments are kept in a spreadsheet system. All the hospitals are in similar buildings and having the same internal organization. A relevant historical fragment is provided below: | Hospital | Doctor | Appointment | Patient | | FBH: Fairfax Best Hospital (999-113-2239, contact@fbh.com) | D1001: Michael Jones (999-218-9933, mjones@fbh.com) | 9/7/2019 10:00AM Suite 2400 (Cardiology, second floor, follow blue circle) | P10000121: Robert Brown (999-310-2241) | | 9/7/2019 10:20AM Suite 2400 (Cardiology, second floor, follow blue circle) | P10000123: Andrea Garcia (999-324-9267) | | ... | ... | | D1002: William Miller (999-228-9933, wmiller@fbh.com) | 10/5/2019 10:20AM Suite 3100 (Dermatology, third floor, follow orange square) | P10000123: Andrea Garcia (999-324-9267) | | ... | ... | | ... | ... | ... | | ABH: Arlington Best Hospital (998-120-1124, contact@abh.com) | D2001: Mary Johnson (999-235-8365, mjones@abh.com) | 9/7/2019 10:00AM Suite 1200 (Critical care, first floor, follow red triangle) | P20003728: Elizabeth Brown (999-335-1182) | | ... | ... | | 11/27/2019 8:00PM Suite 1200 (Critical care, first floor, follow red triangle) | P20003728: Elizabeth Brown (999-335-1182) | | D2002: Patricia Rodriguez (999-241-0043, prodrigues@abh.com) | ... | ... | | 1/24/2019 8:30AM Suite 2400 (Cardiology, second floor, follow blue circle) | P20003728: Elizabeth Brown (999-335-1182) | | ... | ... | ... | In addition the following business rules were identified: - A doctor works in a single hospital. A hospital has many doctors.
- A doctor has many patient appointments. An appointment is for a given doctor.
- A patient has many doctor appointments. An appointment is for a given patient.
|