Please identify the attributes and primary keys needed for each of the entities. Identify the data types you would use for each of the attributes. Determine the relationships between the entities and find the one-to-many and many-to-many relationships.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question

A small surgery center needs your help to create a database. The office manager has identified the following types of data (entities): patients, doctors, procedures and appointments using the following business rules:

  • Patients can have many doctors and many doctors can see many patients.
  • Patients can have many procedures and many procedures are done on patients.
  • Doctors can have multiple appointments. (hint: these are many to many relationships, so associative tables need to be added).

Requirements

  1. Please identify the attributes and primary keys needed for each of the entities.
  2. Identify the data types you would use for each of the attributes.
  3. Determine the relationships between the entities and find the one-to-many and many-to-many relationships.
  4. Create an ER diagram using Visio include the associative tables based on your analysis.
  5. Identify all foreign keys needed in the database design.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr