0% found this document useful (0 votes)
56 views

SQL Mandatory AssignmentPkumar

The document discusses tasks to analyze a restaurant dataset using SQL for a food delivery client. The tasks include creating a stored procedure to display restaurants with bookings, updating cuisine types in a transaction, finding top rated areas, using a while loop, and creating a trigger to notify owners of new records.

Uploaded by

Pardeep Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

SQL Mandatory AssignmentPkumar

The document discusses tasks to analyze a restaurant dataset using SQL for a food delivery client. The tasks include creating a stored procedure to display restaurants with bookings, updating cuisine types in a transaction, finding top rated areas, using a while loop, and creating a trigger to notify owners of new records.

Uploaded by

Pardeep Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

t

aa
llip
SQL Mandatory Assignment 3
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 stored procedure to display the restaurant name, type and cuisine where the

aa
table booking is not zero.
2. Create a transaction and update the cuisine type ‘Cafe’ to ‘Cafeteria’. Check the result
and rollback it.
3. Generate a row number column and find the top 5 areas with the highest rating of
restaurants.
llip
4. Use the while loop to display the 1 to 50.
5. Write a query to Create a Top rating view to store the generated top 5 highest rating of
restaurants.
6. Write a trigger that sends an email notification to the restaurant owner whenever a new
record is inserted.
te
In

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

You might also like