This SQL project is focused on analyzing food delivery data to derive actionable business insights. It simulates real-world use cases faced by growth and marketing teams in a food delivery business, like customer acquisition, retention, and promotions.
The dataset contains a single orders table with the following columns:
Order_idCustomer_codePlaced_atRestaurant_idCuisineOrder_statusPromo_code_Name
All data is simulated and covers various cuisines, promo usage, and customer behaviors across multiple cities.
| # | Problem Statement |
|---|---|
| 1οΈβ£ | Top outlets by cuisine without using LIMIT or TOP |
| 2οΈβ£ | Daily new customer count from the launch date |
| 3οΈβ£ | Count of users acquired in Jan 2025 who placed only one order in Jan and none after |
| 4οΈβ£ | Customers with no orders in the last 7 days but were acquired a month ago using a promo |
| 5οΈβ£ | Trigger target customers after every third order |
| 6οΈβ£ | List customers who only ordered using promos and ordered more than once |
| 7οΈβ£ | % of users organically acquired in Jan 2025 (without a promo code) |
- SQL Server (T-SQL syntax)
- SSMS (SQL Server Management Studio)
- Use of
CTE,ROW_NUMBER(),WINDOW FUNCTIONS - Conditional Aggregation
- Temporal Filtering (based on
GETDATE()) - Real-world business thinking in SQL