2. Deploy the data in the table
3. Design the PK and FK
PATIENT
Patient_ID
F_Name
L_Name
Sex
StreetAddress
City
Province
PostalCode
PhoneNumber
2
Yannick
McEachern
M
2 Sharar Drive
1
1
K3Y6B8
(613)822-5410
3
James
Gilchrist
M
89 Larrond Drive
1
1
K2W8N5
(613)822-1110
4
Wanda
Jackson
F
17 Hassan Drive
1
1
K2D8M7
(613)822-6126
5
Adam
McMullen
M
25 Friendly Lane
2
1
K2E7V5
(613)828-7815
6
Krystian
Luong
F
78 Orr Drive
4
1
K1Y6F4
(613)828-7451
PHYSICIAN
Physician_ID
F_Name
L_Name
StreetAddress
City
Province
PostalCode
PhoneNumber
1
Dr. James
Brown
17 Ellery Cres.
1
1
K2C3B3
(613)823-7765
2
Dr. Eric
Buschlen
23 Anna Drive
1
1
K2X8S2
(613)878=9945
3
Dr. Paul
Southern
5 Stinson Avenue
1
1
K2C5B5
(613)821-7781
4
Dr. Tyler
Molyneaux
3 Virgil Cresent
5
2
J2W1D7
(613)998-7485
5
Dr. Peter
Roden
12 Horner Drive
1
1
K1G7B3
(613)448-7513
6
Dr. Wong
Chapman
45 Horse Dr.
2
3
H1H8J9
(613)787-0956
Treatment table:
Patient_ID
Physician_ID
TreatmentName
2
1
Treatment C
3
2
Treatment K
4
3
Treatment A
5
2
Treatment B
6
5
Treatment E
7
6
Treatment C
4. Design the following SQL
Query1: find the treatment given to Jackson, and who is his doctor with his address?
Query2: Find the patient(s) with treatment C
Query 3: find the Phone number of Dr. Paul
Query 4: list the patients who treated by Dr. Eric?