Data Integrity: Test Table Result Field
Data Integrity: Test Table Result Field
Contact:
Question 1. List the full names, phones, and ages for these patients whose home addresses are
either in Brisbane or Gold Coast, and their ages are greater than 60 years old. Order by their family
names.
SELECT PATIENT.FULLNAME, PHONENO AS Expr1, AGE AS Expr2
FROM PATIENT
WHERE (((PATIENT.[ADDRESS])="BRISBANE")) OR (((PATIENT.
[ADDRESS])="GOLDCOAST") AND (([AGE])>=60))
ORDER BY PATIENT.FULLNAME;
Question 2. There are many doctors in each hospital. But not every doctor participates in the
treatment work due to their different specialties and other tasks. List the names and specialties of
doctors, who are working at Princess Alexandra Hospital in Brisbane and have not participated in
the treatment work of corona virus-infected patients.
Question 3. List details of the patients from Rockhampton and their closely contacted persons.
These details include patient’s full names and phones, closely contacted person’s full names and
phones, as well as the contact process or scenario descriptions.
SELECT CLOSELYCONTACTPERSON.FullName,PATIENT.FULLNAME,PATIENT.PHONE
FROM PATIENT WHERE ADDRESS="Rockhampton"
Question 4. List the names, phones, and the number of virus tests for the patients who are from
Brisbane.
SELECT FULLNAME,PHONE FROM PATIENT WHERE ADDRESS="Brisbane"
Question 5. Which hospitals have the highest number of respiratory machines? Find out the names
of the hospitals, their phones, and the number of respiratory machines.
SELECT MAX(NumberOfMachine),NAME,CONTACTNO FROM HOSPITAL
Question 6. Which patients have been tested more than once on virus test? Show the patient
names, phones, and the number of virus tests.
REPORT