You are on page 1of 7

1

INSTITUTE OF ENGINEERING & MANAGEMENT

INSTITUTE OF ENGINEERING
&
MANAGEMENT

NAME OF THE STUDENT : Manish Pandey


ROLL NO. : 215
ENROLLMENT NO. : 12018002013048
SUBJECT/SUBJECT CODE : DBMS Lab / PCC-CS691
DAILY ASSIGNMENT NO. : 06

SIGNATURE :

DATE :22/05/2021

NAME : Manish Pandey ROLL NO. : 215 SEC : B


1
INSTITUTE OF ENGINEERING & MANAGEMENT

1.Find names of sailors whose name begins and ends with B and has at least 3 characters.

2.Find names of sailors who have reserved a red boat or a green boat.

3.Find names of sailors who have reserved a red boat but not a green boat.

4.Find names of sailors who have reserved boat 103.

NAME : Manish Pandey ROLL NO. : 215 SEC : B


1
INSTITUTE OF ENGINEERING & MANAGEMENT

5.Find names of sailors who have reserved red boats.

6.Find names of sailors who have not reserved red boats.

7.Count distinct sailor names from sailors.

8.Find all records for the rating>some sailor name where sailor name like ‘Horatio’.

9.Find all records for the rating>all sailor names where sailor name like ‘Horatio’.

NAME : Manish Pandey ROLL NO. : 215 SEC : B


1
INSTITUTE OF ENGINEERING & MANAGEMENT
10.Find all records for the rating<some sailor name where sailor name like ‘Horatio’.

11.Find all records for the rating<all sailor name where sailor name like ‘Horatio’.

11.Select all records for s_name neither Lubber nor Horatio.

NAME : Manish Pandey ROLL NO. : 215 SEC : B


1
INSTITUTE OF ENGINEERING & MANAGEMENT

12.Find names of sailors whose rating is>10/20/30 using a multi row subquery operator.

13.Find names of sailors whose rating is>10/20/30 using a multi row subquery operator.
14.Find names of sailors whose rating is>10 & 20 & 30 using a multi row subquery operator.

15.Find average age of sailors with rating 10.

16.Find the name of a sailor who is older than the oldest sailor of rating=10.

NAME : Manish Pandey ROLL NO. : 215 SEC : B


1
INSTITUTE OF ENGINEERING & MANAGEMENT

17.Find the age of youngest sailor for each rating level.

18.Find the name of each sailor who is eligible to vote for each rating level.

19.Find the age of the youngest sailor who is eligible to vote for each rating level with at least two such sailors.

20.Find the average age of sailor for each rating level with at least two such sailors.

21.Find a sailor with the highest rating.

NAME : Manish Pandey ROLL NO. : 215 SEC : B


1
INSTITUTE OF ENGINEERING & MANAGEMENT

22.Find those ratings for which the average age of sailors is the minimum over all rating.    

NAME : Manish Pandey ROLL NO. : 215 SEC : B

You might also like