Question: 1) Create a view 'VIEW BEST_RATED_DOCTOR' that shows the average rating and total count of ratings for each Doctor. a. Display attributes as Doctor

1) Create a view 'VIEW BEST_RATED_DOCTOR' that shows the average rating and

1) Create a view 'VIEW BEST_RATED_DOCTOR' that shows the average rating and total count of ratings for each Doctor. a. Display attributes as "Doctor ID" "Doctor Name" - with space between first name and last name "Number of ratings" for each doctor "Average Rating" for each doctor-rounded to 2 decimal places b. Only consider ratings from start of 2020 c. Sort results by average rating in descending order.

Step by Step Solution

3.35 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Assuming we have a database with the following schema DOCTOR DoctorID DoctorName RATING DoctorID Rat... View full answer

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 Programming Questions!