Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

check whether the tables are correct? CREATE TABLE Patient ( Patient ID NUMERIC (5) NOT NULL, Patient Name VARCHAR (50) NOT NULL, Patient DOB DATETIME,

check whether the tables are correct?

   

CREATE TABLE Patient ( Patient ID NUMERIC (5) NOT NULL, Patient Name VARCHAR (50) NOT NULL, Patient DOB DATETIME, Patient Address VARCHAR (25), CONSTRAINT Patient_PK PRIMARY KEY (Patient_ID) ); CREATE TABLE Provider ( Provider_ID Provider_Name Provider_Speciality ); ); Provider Qualification Provider Contact VARCHAR (50), PRIMARY KEY (Provider_ID), CREATE TABLE Appointment ( Appointment ID Patient ID Provider ID NUMERIC (5) NOT NULL, VARCHAR (50) NOT NULL, VARCHAR (50), VARCHAR (50), Appointment Date DATETIME, Appointment Time DATETIME, Appointment Status VARCHAR (10), PRIMARY KEY (Appointment_ID), FOREIGN KEY (Patient_ID) FOREIGN KEY (Provider_ID) CREATE TABLE Encounter ( Encounter ID Patient ID Provider_ID Appointment ID Encounter_Type Encounter_Start NUMERIC (5) NOT NULL, NUMERIC (5) NOT NULL, NUMERIC (5) NOT NULL, REFERENCES Patient (Patient_ID), REFERENCES Provider (Provider_ID) NUMERIC (5) NOT NULL, NUMERIC (5) NOT NULL, NUMERIC (5) NOT NULL, NUMERIC (5) NOT NULL, VARCHAR (10), DATETIME, Encounter End DATETIME, Appointment Status VARCHAR (10), PRIMARY KEY (Appointment_ID), FOREIGN KEY (Patient_ID) REFERENCES Patient (Patient_ID), FOREIGN KEY (Provider_ID) REFERENCES Provider (Provider_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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Databases questions

Question

Describe effectiveness of reading at night?

Answered: 1 week ago

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago

Question

What do we know about police officers as eyewitnesses?

Answered: 1 week ago

Question

What do we know about elderly people as eyewitnesses?

Answered: 1 week ago