Goutam D Irkal 2KE23CS042 CSE A DIV IV SEM
roll no 43 BCS403
Consider the Schema.
SAILORS (SID, SNAME, RATING, AGE)
BOATS (BID, BNAME, COLOR)
RESERVES (SID, BID, DAY).
Write the SQL queries for the following.
i). Find the names of sailors who have reserved a RED boat or a GREEN boat.
ii). Find the names of sailors who have reserved all boats on the date 15-aug-2010.
iii). Increment the entire sailor rating by 2 for all the sailors who sail PINK boats.
iV). Count the number of boats for each sailor.
Creating databases:
Goutam D Irkal 2KE23CS042 CSE A DIV IV SEM
roll no 43 BCS403
i). Find the names of sailors who have reserved a RED boat or a GREEN boat.
ii). Find the names of sailors who have reserved all boats on the date 15-aug-2010.
Goutam D Irkal 2KE23CS042 CSE A DIV IV SEM
roll no 43 BCS403
iii). Increment the entire sailor rating by 2 for all the sailors who sail PINK boats.
iV). Count the number of boats for each sailor.