1
503views
Advanced databse management system questions
written 2.3 years ago by | • modified 2.3 years ago |
Consider the following relational schema
Sailors (sid: integer, sname: string, rating: integer, age: real)
Boats (bid: integer, bname: string, color: string)
Reserves (sid: integer, bid: integer, day: date)
Create the tables along with necessary constraints and insert values appropriately.
Write the following queries in SQL:
Find the sailors with highest rating.
Find the average age of sailors for each rating level that has atleast two sailors .
- Find the names of sailors who have reserved both a red boat and a green boat.
- Create a view that displays the details of the sailors who resrved boats on 21-Oct?201
Note:[ Please update an answer before 12:00 A.M. (-_-) ]
ADD COMMENT
EDIT