Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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) (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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started