0% found this document useful (0 votes)
54 views

Name: Purvi Lalan ID: 17102047 Experiment 4 & 5

This document contains instructions for 24 SQL queries to perform on a sailors database: find names and ages of all sailors, sailors with ratings above 7, sailors who reserved boat 103, and more. It asks to find averages, counts, names of sailors meeting certain criteria on age, rating, boat reservations. The goal is to extract various types of information from the sailors database through a series of structured query language statements.

Uploaded by

Prashant Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Name: Purvi Lalan ID: 17102047 Experiment 4 & 5

This document contains instructions for 24 SQL queries to perform on a sailors database: find names and ages of all sailors, sailors with ratings above 7, sailors who reserved boat 103, and more. It asks to find averages, counts, names of sailors meeting certain criteria on age, rating, boat reservations. The goal is to extract various types of information from the sailors database through a series of structured query language statements.

Uploaded by

Prashant Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy