0% found this document useful (0 votes)
4 views1 page

Sailors

The document contains a table of sailors, their reservations, and boat details. It outlines specific queries to retrieve information such as sailor names, ages, and details about boat reservations. The queries are to be expressed in relational algebra and SQL.

Uploaded by

jhuth981
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)
4 views1 page

Sailors

The document contains a table of sailors, their reservations, and boat details. It outlines specific queries to retrieve information such as sailor names, ages, and details about boat reservations. The queries are to be expressed in relational algebra and SQL.

Uploaded by

jhuth981
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/ 1

Sailor Reservation Boat

Sid SName Rating Age Sid Bid Day Bid BName Colour
22 Dustin 7 45 22 101 10/10/1998 101 Interlake Blue
29 Brutus 1 33 22 102 10/10/1998 102 Interlake Red
31 Lubber 8 56 22 103 10/8/1998 103 Clipper Green
32 Andy 8 26 22 104 10/7/1998 104 Marine Red
58 Rusty 10 35 31 102 11/10/1998
64 Horatio 7 35 31 103 11/6/1998
71 Zorba 10 16 31 104 11/12/1998
74 Horatio 9 36 64 101 11/5/1998
85 Art 3 26 64 102 9/8/1998
95 Bob 3 64 74 103 9/9/1998

From the previous tables write relational Algebra and SQL queries for the following:

1. Find the names and ages of all sailors.


2. Find the name of the sailor who have Sid 22.
3. Find the Sid of the sailor who reserved 103 boat.
4. Find the name of the sailor who reserved 103 boat.
5. Find the name of the sailor who reserved a red boat.
6. Find the colour of boat which reserved by Lubber.
7. Find the name of the sailor who reserved at least one boat.

You might also like