From 123f3a3e0da10c3c890bf9d324196f0e822ce7ae Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Tue, 27 Aug 2019 01:50:42 -0400 Subject: [PATCH] Add query for part 3a --- Cruise.sql | 6 ++++++ 1 file changed, 6 insertions(+) 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