Add part 3d solution

master
Nick Krichevsky 2019-08-27 02:41:31 -04:00
parent 5863ae7b2a
commit d1c569f6b0
1 changed files with 6 additions and 1 deletions

View File

@ -151,4 +151,9 @@ SELECT companyName || Company.stockSymbol AS CruiseCompany, Cruise.cruiseName, R
NATURAL JOIN Cruise
NATURAL JOIN Company
WHERE Cruise.Days >= 10 AND Reservation.travelDate >= '1-JAN-2019'
ORDER BY Cruise.cruiseName ASC, Reservation.travelDate ASC;
ORDER BY Cruise.cruiseName ASC, Reservation.travelDate ASC;
-- 3d
SELECT travelAgent.firstName, travelAgent.lastName, travelAgent.title FROM travelAgent
LEFT JOIN Reservation ON travelAgent.travelAgentID = Reservation.travelAgentID
WHERE Reservation.travelAgentID IS NULL;