Swiggy is one of the most popular food delivery platforms connecting customers with a wide range of restaurants. Managing orders, menus, deliveries, and customer information efficiently is crucial for the seamless functioning of such platforms. This project aims to design and implement a MySQL database system for Swiggy to streamline its operations and enhance its performance.
- WHERE Clause
- ORDER BY
- LIKE
- DISTINCT
- Group BY
How many distinct on time delivery?
SELECT count(DISTINCT order_id) as distinct_on_time_dilevery from orders where on_time=1;
Which are our fav resturant?
select order_total,count(distinct restaurant_name) As restaurant_count from Orders group by order_total order by restaurant_count desc limit 1;
How many Restaurents have the word "PIZZA" in their Name?
SELECT order_total, COUNT(DISTINCT restaurant_name) AS pizza_restaurant FROM Orders WHERE restaurant_name LIKE '%Pizza%' GROUP BY order_total;
How many distinct resturant we have order from?
select count(DISTINCT restaurant_name) AS distinct_resturant FROM orders
MY SQL Workbench 8.0 CE