Add query for part 3a
This commit is contained in:
parent
53f5e750fb
commit
123f3a3e0d
|
@ -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, 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, 7, 4, 8, '15-Mar-19');
|
||||||
INSERT INTO Reservation VALUES (reservationID_seq.nextval, 14, 4, 3, '28-Feb-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;
|
Loading…
Reference in a new issue