Question: Consider a database with following schema. This database records information about chefs (including name, birth date, birth city and rating), and the dishes they prepare.

 Consider a database with following schema. This database records information about

Consider a database with following schema. This database records information about chefs (including name, birth date, birth city and rating), and the dishes they prepare. For each dish, the database records dish name and its popularity score. CHEF(cid\#, Chef_Name, ChefBirthDate, ChefBirthCity,Rating) DISH(did\#, Dish_Name, Popularity) PREPARE(cid\#,did\#) / cid is a chef's unique identier did is a dish's unique identier cid references Chef.cid and did references Dish.did */ Q1) Write a SQL query that finds the name of the chef who has above the average rating between chefs and the dish name if her/his dish is above the average popularity between dishes. The query should return pairs of the above average-rated chef name and the above averagepopulared dish name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!