Add solution for part 3c
This commit is contained in:
parent
1579dade62
commit
5863ae7b2a
|
@ -144,4 +144,11 @@ SELECT DISTINCT Cruise.CompanyName, Cruise.cruiseName FROM Cruise
|
|||
JOIN Reservation USING (cruiseID)
|
||||
JOIN Customer USING (customerID)
|
||||
WHERE Customer.Age > 50 AND Cruise.departurePort = 'Miami'
|
||||
ORDER BY Cruise.CompanyName ASC;
|
||||
ORDER BY Cruise.CompanyName ASC;
|
||||
|
||||
-- 3c
|
||||
SELECT companyName || Company.stockSymbol AS CruiseCompany, Cruise.cruiseName, Reservation.travelDate FROM Reservation
|
||||
NATURAL JOIN Cruise
|
||||
NATURAL JOIN Company
|
||||
WHERE Cruise.Days >= 10 AND Reservation.travelDate >= '1-JAN-2019'
|
||||
ORDER BY Cruise.cruiseName ASC, Reservation.travelDate ASC;
|
Loading…
Reference in a new issue