lint all files

This commit is contained in:
2024-01-16 13:48:46 +00:00
parent b515ba4458
commit a321b0ce99
45 changed files with 66985 additions and 23206 deletions

View File

@@ -1,4 +1,4 @@
3. List the names of patients who are at least fifty years old. Your query should always generate a list in which the names are sorted in alphabetical order. The ordering must not depend upon the order in which you entered data into your database.
1. List the names of patients who are at least fifty years old. Your query should always generate a list in which the names are sorted in alphabetical order. The ordering must not depend upon the order in which you entered data into your database.
```SQL
SELECT patient_name
@@ -9,7 +9,7 @@ ORDER BY patient_name;
![](Pasted%20image%2020231204184010.png)
4. List the name of each type of organ, together with the total number of donations of that type of organ.
1. List the name of each type of organ, together with the total number of donations of that type of organ.
```SQL
SELECT organ_type, COUNT( organ_type )
@@ -20,7 +20,7 @@ GROUP BY organ_type;
![](Pasted%20image%2020231204184814.png)
5. List the identifiers of hospitals where a transplant has been performed, together with the number of transplant operations at the hospital.
1. List the identifiers of hospitals where a transplant has been performed, together with the number of transplant operations at the hospital.
```SQL
SELECT hospital_id, COUNT( hospital_id )
@@ -31,7 +31,7 @@ GROUP BY hospital_id;
![](Pasted%20image%2020231204191255.png)
6. Output the age of the oldest person who has donated in a hospital in Manchester.
1. Output the age of the oldest person who has donated in a hospital in Manchester.
```SQL
SELECT age
@@ -49,4 +49,4 @@ WHERE donor_id IN (
)
)
);
```
```