Presentation is loading. Please wait.

Presentation is loading. Please wait.

Create, Insert, Delete, Update. Create Create database Create table Create index – Primary – Secondary.

Similar presentations


Presentation on theme: "Create, Insert, Delete, Update. Create Create database Create table Create index – Primary – Secondary."— Presentation transcript:

1 Create, Insert, Delete, Update

2 Create Create database Create table Create index – Primary – Secondary

3 Insert insert into Guest (GuestNr, Name, StreetNr, City) values (107, “Smith”, “12 Maple”, “Providence”) insert into Guest values (107, “Smith” “12 Maple”, “Providence”) insert into RoomNameGuestNameSame select Room.Name from Room, Guest where Room.Name = Guest.Name assuming we have create table RoomNameGuestNameSame (Name char(20));

4 Delete delete from Guest where GuestNr = 107 delete from Reservation where ArrivalDate = “10 May”

5 Update update Room set Cost = Cost + Cost*0.1 where NrBeds = 2


Download ppt "Create, Insert, Delete, Update. Create Create database Create table Create index – Primary – Secondary."

Similar presentations


Ads by Google