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

Assignment 2 DBMS

The document provides 18 questions about sailors and boat reservations with corresponding SQL and algebra expressions. It includes questions about finding sailor names based on boat colors reserved, boat IDs, number of boats reserved, and reservation dates. It also includes a question about computing rating increments for sailors who sailed two boats in one day.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Assignment 2 DBMS

The document provides 18 questions about sailors and boat reservations with corresponding SQL and algebra expressions. It includes questions about finding sailor names based on boat colors reserved, boat IDs, number of boats reserved, and reservation dates. It also includes a question about computing rating increments for sailors who sailed two boats in one day.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

21CS53-Data Base Management System

ASSIGNMENT-2

Write the Algebra expression and Sql expression for the below queries considering
below data:

Si
No Questions CO Level

1 Find the names of sailors who have reserved boat 103 2 L3


2 Find the names of sailors who have reserved a red boat ? 2 L3
3 Find the colors of boats reserved by Lubber ? 2 L3
4 Find the names of sailors who have reserved a red or a green boat ? 2 L3
5 Find the names of sailors who have reserved at least one boat ? 2 L3
6 Find the names of sailors who have reserved a red and a green boat ? 2 L3
7 Find the names of sailors who have reserved at least two boats ? 2 L3
8 Find the names of sailors who have reserved all boats ? 2 L3

ATRIA INSTITUTE OF TECHNOLOGY


DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

9 Find the names of sailors who have reserved all boats ? 2 L3

10 Find the names of sailors who have reserved all boats called Interlake ?
11 Find all sailors with a rating above 7 ? 2 L3
12 Find the names and ages of sailors with a rating above 7 ? 2 L3
13 Find the sailor name, boat id, and reservation date for each reservation ? 2 L3
14 Find the names of sailors who have reserved boat 103 ? 2 L3
15 Find the names of sailors who have reserved a red boat ? 2 L3
16 Find sailors who have reserved all boats ? 2 L3
17 Compute increments for the ratings of persons who have sailed two different boats on 2 L3
the same day ?

18 Find the ages of sailors whose name begins and ends with B and has at least three 2 L3
characters?

ATRIA INSTITUTE OF TECHNOLOGY

You might also like