Use ONs instead of USINGs to avoid Wong's Wrath

master
Nick Krichevsky 2019-08-27 02:44:47 -04:00
parent d1c569f6b0
commit 591978dd3c
1 changed files with 2 additions and 2 deletions

View File

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