diff --git a/Cruise.sql b/Cruise.sql index 5813016..3a5d8ca 100644 --- a/Cruise.sql +++ b/Cruise.sql @@ -132,3 +132,9 @@ INSERT INTO Reservation VALUES (reservationID_seq.nextval, 14, 2, 8, '22-Jun-19' INSERT INTO Reservation VALUES (reservationID_seq.nextval, 11, 5, 9, '1-Feb-19'); INSERT INTO Reservation VALUES (reservationID_seq.nextval, 7, 4, 8, '15-Mar-19'); INSERT INTO Reservation VALUES (reservationID_seq.nextval, 14, 4, 3, '28-Feb-19'); + +-- Part 3; Queries; +-- 3a +SELECT cruiseName, departurePort, shipName, price FROM Cruise; +UPDATE Cruise SET price = ROUND(price * 1.15, 2) WHERE departurePort = 'Miami'; +SELECT cruiseName, departurePort, shipName, TO_CHAR(price, '$99,999.99') FROM Cruise; \ No newline at end of file