50% found this document useful (2 votes)
2K views

SQL Mandatory Assignment 2

Uploaded by

Mona Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
2K views

SQL Mandatory Assignment 2

Uploaded by

Mona Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

t

aa
llip
SQL Mandatory Assignment 2
te
In

Contact us: [email protected] / © Copyright Intellipaat / All rights reserved


Dataset: Jomato

About the dataset:

You work for a data analytics company, and your client is a food delivery platform similar to
Jomato. They have provided you with a dataset containing information about various
restaurants in a city. Your task is to analyze this dataset using SQL queries to extract valuable
insights and generate reports for your client.

Tasks to be performed:

t
1. Create a user-defined functions to stuff the Chicken into ‘Quick Bites’. Eg: ‘Quick
Chicken Bites’.

aa
2. Use the function to display the restaurant name and cuisine type which has the
maximum number of rating.
3. Create a Rating Status column to display the rating as ‘Excellent’ if it has more the 4
start rating, ‘Good’ if it has above 3.5 and below 5 star rating, ‘Average’ if it is above 3
llip
and below 3.5 and ‘Bad’ if it is below 3 star rating.
4. Find the Ceil, floor and absolute values of the rating column and display the current date
and separately display the year, month_name and day.
5. Display the restaurant type and total average cost using rollup.
te
In

Contact us: [email protected] / © Copyright Intellipaat / All rights reserved

You might also like