From 591978dd3c81d91609770cb826dea3ad27f2e4f2 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Tue, 27 Aug 2019 02:44:47 -0400 Subject: [PATCH] Use ONs instead of USINGs to avoid Wong's Wrath --- Cruise.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cruise.sql b/Cruise.sql index de4c234..d6befb7 100644 --- a/Cruise.sql +++ b/Cruise.sql @@ -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;