first commit
This commit is contained in:
15
Semester 1/Database Systems/Assignment/Scripts/Script-2.sql
Normal file
15
Semester 1/Database Systems/Assignment/Scripts/Script-2.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
SELECT MAX(age) as oldest_donor
|
||||
FROM donor
|
||||
WHERE donor_id IN (
|
||||
SELECT donor_id
|
||||
FROM operation
|
||||
WHERE unit_id IN (
|
||||
SELECT unit_id
|
||||
FROM transplant_unit
|
||||
WHERE hospital_id IN (
|
||||
SELECT hospital_id
|
||||
FROM hospital
|
||||
WHERE city LIKE '%Manchester%'
|
||||
)
|
||||
)
|
||||
);
|
Reference in New Issue
Block a user