Patients Database COMPLETE
Patients Database COMPLETE
Information Technology
Class Activity 2025
The following tables consists of information for the Patient’s and the Doctor’s
file respectively.
1. You need to create a database to store the files related to the Medical
Data. Call the database Your firstname and lastname and group
(for example: Mary Brown 4F).
2. Create the two tables Patients and Doctors as indicated above.
3. Modify the Doctors and the Patients table to include the following
respectively:
Lastname Firstname Title Address City Doctor’s
Number
Ewing Patrick Prof. 235 Apple Pines, Montego Bay 4
Mount Salem
4. Define the fields for the tables above and be sure to include all other
possible definitions.
5. Create two Forms to be used for entering the data in Patients and
Doctors respectively. Call the forms PATSFORM and DOCFORM.
6. Create the following queries:
(a) List all the patients with short-breath sort by descending order.
Save as Short.
(b) List all the patients with fees greater than $12,500.00 or
diagnosis Asthma. Save as Asthma.
(c) List all the female patients with fees less than $14,700.00. Save
as Female.
(d) List all the male patients with fees less than or equal $11,000.00.
Save as Males.
(e) Calculate the total sum of fees, for all the patients with diabetes.
Save as diabetes.
(f) What is the highest fee? Save as Hfee.
(g) Calculate the average fee in the patient’s table. Save as Avgfee.
(h) How many patients are in the patient’s table? Save as Pt.
(i) All female patients get a 10% discount. Calculate the new fee for
all female patients. Save as Newfee.
(j) Calculate the total fee for the patient’s table and format it
currency. Save as Totalfee.
7. Produce a report containing all the information on the patients grouped
by sex and sorted on name in ascending order. Call the report Patrep.
8. Produce a report which shows the names of patients and diagnosis
grouped by blood type, along with their Doctor’s first and last name and
fees charged. Call the report PatDocRep.