Use ONs instead of USINGs to avoid Wong's Wrath

This commit is contained in:
Nick Krichevsky 2019-08-27 02:44:47 -04:00
parent d1c569f6b0
commit 591978dd3c

View file

@ -141,8 +141,8 @@ SELECT cruiseName, departurePort, shipName, TO_CHAR(price, '$99,999.99') FROM Cr
-- 3b -- 3b
SELECT DISTINCT Cruise.CompanyName, Cruise.cruiseName FROM Cruise SELECT DISTINCT Cruise.CompanyName, Cruise.cruiseName FROM Cruise
JOIN Reservation USING (cruiseID) JOIN Reservation ON Cruise.cruiseID = Reservation.cruiseID
JOIN Customer USING (customerID) JOIN Customer ON Reservation.customerID = Customer.customerID
WHERE Customer.Age > 50 AND Cruise.departurePort = 'Miami' WHERE Customer.Age > 50 AND Cruise.departurePort = 'Miami'
ORDER BY Cruise.CompanyName ASC; ORDER BY Cruise.CompanyName ASC;