Question: please help with SQL commands for following queries. Lab Assignment-5 (DBMS) (set comparison operator and nested queries) 10/02/2021 Create the following tables Sailor (Sid. Sname,

 please help with SQL commands for following queries. Lab Assignment-5 (DBMS)
please help with SQL commands for following queries.

Lab Assignment-5 (DBMS) (set comparison operator and nested queries) 10/02/2021 Create the following tables Sailor (Sid. Sname, Rating, Age), Reserve (Sid, Bid, Date), Boat (Bid, Bname, color) 1. Find the sailors whose ratings are better than "Mark" (sailor). 2. Find the sailor with highest ratings. 3. Find the sailor with lowest ratings 4. Find the details of boat whose name is not "Titanic". (use !=) 5. Find the details of sailors whose names are "Mark", "Andrew", "Smith". (use IN) 6. Find the details of boats whose colors are "red", "blue", "black". (use =ANY) 7. Find the Sid of sailors who are not reserved on 2018-12-01", "2019-02-11","2017-12-19". (use NOT IN) 8. Find the Bid of boats which are not reserved between 2018/04/19"and "2019/12/01". (use BETWEEN) 9. Find the sailor names whose ratings are in between 7 to 10. 10. Find the sailor names whose ages are not in between 25 to 40 (use NOT BETWEEN) 11. Find all the sailor details where at least one sailor has been reserved. (use EXISTS) 12. Find the names of the sailors who have reserved all "red" boats but not "black" ones. (use NOT IN)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!