Zomato SQL Questions 1728058990
Zomato SQL Questions 1728058990
Beginner Level
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.
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.
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.
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.