Problem Statements (Data Extraction)
- Retrieve all successful bookings
- Find the average ride distance for each vehicle type
- Get the total number of cancelled rides by customers
- List the top 5 customers who booked the highest number of rides
- Get the number of rides cancelled by drivers due to personal and car-related issues
- Find the maximum and minimum driver ratings for Prime Sedan bookings
- Retrieve all rides where payment was made using UPI
- Find the average customer rating per vehicle type
- Calculate the total booking value of rides completed successfully
- List all incomplete rides along with the reason
Problem Statements (PowerBI Dashboard)
- Ride Volume Over Time
- Booking Status Breakdown
- Top 5 Vehicle Types by Ride Distance
- Average Customer Ratings by Vehicle Type
- cancelled Rides Reasons
- Revenue by Payment Method
- Top 5 Customers by Total Booking Value
- Ride Distance Distribution Per Day
- Driver Ratings Distribution
- Customer vs. Driver Ratings
SQL Queries
- Retrieve all successful bookings:
SELECT * FROM bookings WHERE Booking_Status = ‘Success’; - Find the average ride distance for each vehicle type:
SELECT Vehicle_Type, AVG(Ride_Distance) as avg_distance FROM bookings GROUP BY
Vehicle_Type; - Get the total number of cancelled rides by customers:
SELECT COUNT(*) FROM bookings WHERE Booking_Status = ‘cancelled by Customer’; - List the top 5 customers who booked the highest number of rides:
SELECT Customer_ID, COUNT(Booking_ID) as total_rides FROM bookings GROUP BY
Customer_ID ORDER BY total_rides DESC LIMIT 5; - Get the number of rides cancelled by drivers due to personal and car-related issues:
SELECT COUNT(*) FROM bookings WHERE cancelled_Rides_by_Driver = ‘Personal & Car
related issue’; - Find the maximum and minimum driver ratings for Prime Sedan bookings:
SELECT MAX(Driver_Ratings) as max_rating, MIN(Driver_Ratings) as min_rating FROM
bookings WHERE Vehicle_Type = ‘Prime Sedan’; - Retrieve all rides where payment was made using UPI:
SELECT * FROM bookings WHERE Payment_Method = ‘UPI’; - Find the average customer rating per vehicle type:
SELECT Vehicle_Type, AVG(Customer_Rating) as avg_customer_rating FROM bookings
GROUP BY Vehicle_Type; - Calculate the total booking value of rides completed successfully:
SELECT SUM(Booking_Value) as total_successful_value FROM bookings WHERE
Booking_Status = ‘Success’; - List all incomplete rides along with the reason:
SELECT Booking_ID, Incomplete_Rides_Reason FROM bookings WHERE Incomplete_Rides =
‘Yes’;