Refer to the schemas for Sailors, Boats and Reserves introduced in the class, specify the following queries in SQL:Retrieve the names of the boats that have been reserved by either “John Smith” or “James Brown”.Retrieve the bids of the red boats that are not reserved by any one in “August,3, 2007”.Retrieve the names of the sailors who have reserved a red boat but not green boat. Use different copies of relevant relation to specify this query. Can youuse except operator? Why or why not?For each boat color, retrieve the total number of reservations made by “John Smith”.For each sailor who has reserved more than three red boats, give his/her name and sid, and total number of red boats he/she has reserved.For each green boat which has been reserved by more than three sailors, give the total number of sailors who have reserved it and the maximum age of thesesailors.For each rating level with at least two sailors who have made some reservations and at most five boats reserved by the sailors at that level, retrieve theaverage age of the sailors who have made at least one reservatio" border="0" alt="uploadedimage" />
-
Engineering 2022-05-15 21:04:59