Sei sulla pagina 1di 6

Name: Purvi Lalan

ID : 17102047

EXPERIMENT 4 & 5
1) Find the names and ages of all sailors

2) Find all sailors with a rating above 7

3) Find the names of sailors who have reserved boat number 103(Using Nested Query)

4) Find the sids of sailors who have reserves a red boat


5) Find the colours of boats reserved by Lubber

6) Find the names of sailors who have reserved at least one boat

7) Find the ages of sailors whose name begins and ends with B and has at least three
characters

8) Find the names of sailors who have reserved a red or a green boat

9) Find the sids of all sailors who have reserved red boats but not green boats
10) Find all sids of sailors who have a rating of 10 or reserved boat 104

11) Find the names of sailors who have reserved a red boat

12) Find the names of sailors who have not reserved a red boat

13) Find the names of sailors who have reserved boat number 103(Using Inner Join)
14) Find sailors whose rating is better than some sailor called Horatio

15) Find sailors whose rating is better than every sailor called Horatio

16) Find the sailor with the highest rating

17) Find the names of sailors who have reserved both a red and a green boat

18) Find the names of sailors who have reserved all boats
19) Find the average age of all sailors

20) Find the average age of sailors with a rating of 10

21) Find the name and age of the oldest sailor

22) Count the number of sailors

23) Count the number of different sailor names

24) Find the names of sailors who are older than the oldest sailor with a rating of 10