0% found this document useful (0 votes)
53 views2 pages

Zomato SQL Questions 1728058990

Uploaded by

Kush Agra
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)
53 views2 pages

Zomato SQL Questions 1728058990

Uploaded by

Kush Agra
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

Zomato SQL interview questions,

organized by difficulty level: Part -


A

Beginner Level

1. Basic SQL Queries (10)

1. Write a query to find the top 5 most ordered dishes from a restaurant.

2. Write a query to fetch all unique cities from where Zomato delivers.

3. Write a query to calculate the total sales generated by a specific restaurant.

4. Write a query to find the name of customers who have placed more than 5 orders.

5. Write a query to display all the records from a table with NULL values replaced by ‘Not
Available.’

6. Write a query to find the second highest order value in the orders table.

7. Write a query to get the total number of orders placed per day.

8. Write a query to list all customers who haven’t placed an order in the last 30 days.

9. Write a query to get the total number of dishes available in each restaurant.

10. Write a query to fetch the names of all restaurants that are open 24/7.

2. Aggregate Functions and Grouping (10)

11. Write a query to calculate the average rating of a restaurant based on customer feedback.

12. Write a query to get the total number of customers who placed orders more than once.
13. Write a query to find the total number of orders placed by a customer per month.

14. Write a query to calculate the total revenue earned by Zomato across all regions.

15. Write a query to find the total discount offered by each restaurant.

16. Write a query to get the total amount spent by customers in a specific region.

17. Write a query to get the count of orders by delivery status (Delivered, Cancelled, etc.).

18. Write a query to find the average delivery time for each city.

19. Write a query to find restaurants with the most number of negative reviews.

20. Write a query to find the highest order value per customer.

3. Joins and Subqueries (10)

21. Write a query to join two tables, one containing restaurant data and another containing
orders, to find the most popular restaurant.

22. Write a query to find the restaurants that offer the most discounts in a particular city.

23. Write a query to find all restaurants that have not received an order in the last 30 days.

24. Write a query using a self-join to find restaurants that offer both veg and non-veg dishes.

25. Write a query to find customers who ordered from the same restaurant more than 3 times
last month.

26. Write a query to list all customers who have ordered from a restaurant in New Delhi but
not from any restaurant in Mumbai.

27. Write a query to find the name of the restaurants that have more than 1000 total orders.

28. Write a query to find the customers who have placed orders with restaurants offering
discounts in the past week.

29. Write a query to get the details of all restaurants that serve both North Indian and
Chinese cuisines.

30. Write a query to fetch the details of the top 5 dishes with the highest ratings.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy