Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment should be done in SQL Based on the relational schema (3NF) from the diagram on the picture, analyze the tables, their relationships, and

This assignment should be done in SQL

image text in transcribed

Based on the relational schema (3NF) from the diagram on the picture, analyze the tables, their relationships, and the sample data below:

a. CREATE THE TABLES, using the best data types based on analysis. Follow each table name with an underscore and your first, middle, and last initials (if you do not have a middle initial, use X). For example, if your name is Alice B Chandler, table name would be named the Patient table PATIENT_abc. Also, keep in mind that foreign key relationships require the same data types on both sides (e.g., if declared PatientID as INTEGER in the Patient table, it must be declared as INTEGER in the Rental table, too).

b. Execute a DESCRIBE statement for each table to show its general structure.

PATIENT REASON ApptReasonCode ApptReasonDesc PatientID PatientFName PatientLName PatientPhone APPTDETAIL APPOINTMENT ApptiD ApptReasonCode BlockCode ApptDate ApptTime PatientID DoctoriD BillingType InsColD ApptStatusCode 0O DOCTOR DoctorlD DoctorFName DoctorLName BLOCK BlockCode BlockDesc BlockTime BILLINGTYPE BillingType BillingTypeDesc INSCO InsColD InsCoName STATUS ApptStatusCode ApptStatusDesc

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

More Books

Students also viewed these Databases questions

Question

What are DNA and RNA and what is the difference between them?

Answered: 1 week ago

Question

Why do living creatures die? Can it be proved that they are reborn?

Answered: 1 week ago