1 / 1

INSERT INTO CarType (mark, model, year) VALUES ('Peugeot', '607', 2005) INSERT INTO Car

INSERT INTO CarType (mark, model, year) VALUES ('Peugeot', '607', 2005) INSERT INTO Car (reg_no, model_id) VALUES ('CCC-999', 5) UPDATE Car SET rate = 40 WHERE reg_no = 'CCC-999' AND model_id = 5 INSERT INTO Rent (cust_id, reg_no, rent_date) VALUES

Télécharger la présentation

INSERT INTO CarType (mark, model, year) VALUES ('Peugeot', '607', 2005) INSERT INTO Car

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INSERT INTO CarType (mark, model, year) VALUES ('Peugeot', '607', 2005) INSERT INTO Car (reg_no, model_id) VALUES ('CCC-999', 5) UPDATE Car SET rate = 40 WHERE reg_no = 'CCC-999' AND model_id = 5 INSERT INTO Rent (cust_id, reg_no, rent_date) VALUES (2, 'ACC-223', '12.3.2005') UPDATE Car SET rate = 38 WHERE reg_no = 'BAA-442' UPDATE Rent SET return_date = '15.3.2005' WHERE reg_no = 'ACC-223' AND cust_id = 2 SELECT * FROM Rent SELECT * FROM CarType DELETE FROM CarType WHERE model = '607’ DELETE FROM Rent WHERE cust_id = 2 AND reg_no = 'ACC-223' Solutions (Updating)

More Related