Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I NEED THIS IN SQL A large business, with several medical practices, contacted your company to create a database design. You received the task to

I NEED THIS IN SQL

A large business, with several medical practices, contacted your company to create a database design. You received the task to investigate if there is a need for a hierarchy based on the specifications below, and to create the hierarchy analysis if needed. You must not create the entire analysis but only the aspects related to the hierarchy as described in the instructions, class lectures and sample examples. This is the relevant fragment from the requirements specification related to your task.

In the practice we have only medical doctors, nurses and staff.

For the doctors we keep the name (e.g. John Doe, having at most 20 characters for first or last name, no middle name is stored), SSN (with the format '999-99-9999'), phone (with format '999-999-9999'), email (having maximum 25 characters), main specialty (e.g. pediatrics, having at most 20 characters), medical school (having at most 30 characters). A doctor may have appointments and write prescripions.

For nurses we keep the name (e.g. John Doe, having at most 20 characters for first or last name, no middle name is stored), SSN (with the format '999-99-9999'), phone (with format '999-999-9999'), and nurse program they completed (having at most 30 characters). A nurse will prepare the patient during the visit and may collect various data. A doctor is not allowed to perform nurse duties. F

or staff we keep the (e.g. John Doe, having at most 20 characters for first or last name, no middle name is stored), SSN (with the format '999-99-9999'), phone (with format '999-999-9999'), and their role (e.g. receptionist, scheduler, accountant). Based on the practice policies, a nurse or a doctor will not be allowed to perform staff duties.

The company wants to keep a log with who was working daily, between what hours and in which role. The company also wants to fast identify the role of a person in the organization (e.g. doctor, nurse, ...), based on the last name or id.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago