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;