SQL Hands-on Problem Guest wants to display Resort Id, Name and Comments of the resort based on it's star rating. Comments of the resort displays as follows If rating is between 5.0 to 4.5 then...


SQL Hands-on Problem<br>Guest wants to display Resort Id, Name and Comments of the resort based on it's star rating.<br>Comments of the resort displays as follows<br>If rating is between 5.0 to 4.5 then display the comments as 'Excellent Resort<br>If rating is between 4.4 to 4.0 then display the comments as Very Good Resort<br>else display 'Good Resort' . Give alias name to this result as CcOMMENTS.<br>Sort the result based on resort id.<br>RESORT MANAGEMENT SYSTEM<br>Pointofinterest<br>Town<br>Manager<br>townlD<br>townname<br>Number<br>Varchar(30)<br>varchar(30)<br>varchar(30)<br>PK<br>Number<br>varchar(30)<br>varchar(30)<br>varchar(20)<br>varchar(15)<br>pointiD Number<br>manageriD<br>PK<br>PK<br>describe Varchar(30)<br>opentime varchar(10)<br>name<br>state<br>address<br>closetime varchar(10)<br>Number<br>longitude<br>latitude<br>%3<br>varchar(30)<br>city<br>phone<br>summertemp<br>Number<br>FK<br>towniD<br>Number<br>Number<br>wintertemp<br>sealevel<br>Resort<br>Guest<br>Review<br>PK resortiD<br>Number<br>PK<br>guestID<br>Number<br>FK,PK guestID<br>Number<br>Number<br>resortName<br>varchar(30)<br>varchar(30)<br>varchar(30) +<br>varchar(20)<br>name<br>FK,PK resortiD<br>%23<br>street<br>varchar(30)<br>address<br>dateofreview Date<br>varchar(30)<br>townname<br>country<br>email<br>varchar(30)<br>comments<br>varchar(150)<br>FK townid<br>Number<br>varchar(15)<br>starRating<br>Number<br>phone<br>%23<br>FK manageriD<br>Number<br>Booking<br>HAS<br>PK bookingiD<br>FK guestid<br>Number<br>CabinCost<br>Number<br>FK.PK<br>resortiD<br>Number<br>FK resortiD<br>Number<br>FK.PK<br>cabiniD<br>Number<br>FK cabiniD<br>Number<br>Cabin<br>PK<br>startdate<br>Date<br>fromdate<br>Date<br>FK.PK resortID<br>Number<br>todate<br>enddate<br>Date<br>PK<br>Date<br>adultCount<br>Number<br>PK<br>cabiniD<br>Number<br>rate<br>Number<br>Number<br>varchar(30) +<br>childCount<br>describe<br>petcount<br>Number<br>cabintype<br>varchar(10)<br>totalcharge<br>Number<br>bedroomcount Number<br>sleepcapacity<br>Number<br>

Extracted text: SQL Hands-on Problem Guest wants to display Resort Id, Name and Comments of the resort based on it's star rating. Comments of the resort displays as follows If rating is between 5.0 to 4.5 then display the comments as 'Excellent Resort If rating is between 4.4 to 4.0 then display the comments as Very Good Resort else display 'Good Resort' . Give alias name to this result as CcOMMENTS. Sort the result based on resort id. RESORT MANAGEMENT SYSTEM Pointofinterest Town Manager townlD townname Number Varchar(30) varchar(30) varchar(30) PK Number varchar(30) varchar(30) varchar(20) varchar(15) pointiD Number manageriD PK PK describe Varchar(30) opentime varchar(10) name state address closetime varchar(10) Number longitude latitude %3 varchar(30) city phone summertemp Number FK towniD Number Number wintertemp sealevel Resort Guest Review PK resortiD Number PK guestID Number FK,PK guestID Number Number resortName varchar(30) varchar(30) varchar(30) + varchar(20) name FK,PK resortiD %23 street varchar(30) address dateofreview Date varchar(30) townname country email varchar(30) comments varchar(150) FK townid Number varchar(15) starRating Number phone %23 FK manageriD Number Booking HAS PK bookingiD FK guestid Number CabinCost Number FK.PK resortiD Number FK resortiD Number FK.PK cabiniD Number FK cabiniD Number Cabin PK startdate Date fromdate Date FK.PK resortID Number todate enddate Date PK Date adultCount Number PK cabiniD Number rate Number Number varchar(30) + childCount describe petcount Number cabintype varchar(10) totalcharge Number bedroomcount Number sleepcapacity Number
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here