EternalBlissard / FlyntCabs

DBMSproj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlyntCabs - User Guide

FlyntCabs is a versatile command-line interface (CLI) application designed to facilitate various functionalities for users, drivers, and administrators. This user guide provides comprehensive information on the application's features and how to effectively utilize them.

Diagrams

ER,UML Notation,Relational Diagram of the project can be found in this directory.

Requirements:

  • Python Installed in system
  • mysql-connector-python

How to Run:

To launch FlyntCabs, open your terminal and navigate to the directory where you have saved the file.

  1. If you are the admin, your file name will be admin_flyntcabs.py.
  2. If you are the user, your file will be named user_flyntcabs.py.
  3. If you are a driver, your file will be named driver_flyntcabs.py.

Run the following command to start the application:

python 'filename'.py

Navigation in the App:

All three programs share a common login page. Users can either log in, register, or exit by selecting the corresponding option and pressing enter.

Features for Admin:

a) Normal Queries:

  1. Number of Cabs Booked by User in Specified Months:

    • Displays the total number of cabs booked by customers in a specified duration.
  2. Driver and Cab Details for Currently Driving Drivers:

    • Displays details of drivers and cabs for those currently active.
  3. Customers with 0 Booking Till Date:

    • Displays customers who haven't made any bookings.
  4. Number of Bookings by a Single Customer:

    • Displays the number of bookings made by each customer.
  5. Drivers with No Booking in the Last 24 Hours:

    • Displays drivers who haven't made any bookings in the last 24 hours.
  6. Total Revenue Generated by a Cab in a Year:

    • Displays the total revenue generated by a specific cab in a year.
  7. Details with Fare Higher Than Avg Fare of All Cabs:

    • Displays details of customers who paid a fare higher than the average fare.
  8. Deletes Cabs and Drivers for Cars Older Than Specified Year:

    • Deletes cabs and drivers for cars older than the specified year.
  9. Total Number of Trips Each Driver Has Completed in the Past Month:

    • Provides the total number of trips completed by each driver in the past month.
  10. Driver Inactivity Detection:

    • Identifies inactive drivers and updates their details as non-active.
  11. Write Here

  12. Write Here

b) OLAP Queries:

  1. Top 5 Pick-up Locations by Number of Trips, Broken Down by Month and Driver Rating:

    • Identifies top pick-up locations based on number of trips, month, and driver rating.
  2. Determine Total Number of Trips Taken from Each Place:

    • Calculates total trips taken from each pickup location.
  3. Top 3 Customers with Longest Trips for a Quarter:

    • Lists top 3 customers with the longest trips during a specific quarter.
  4. Average Trip Duration on Each Hour of the Day:

    • Calculates the average trip duration for each hour of the day.
  5. Number of Trips Made by Each Driver with Each Cab:

    • Provides the number of trips made by each driver with each cab.
  6. Trips and Revenue by Driver and Cab Type Combination:

    • Generates a report showing trips and revenue for each combination of driver and cab type.

Features for the User:

  1. Bookings:

    • Allows customers to book cabs, view previous bookings, and details of each booking.
  2. Profile:

    • Enables customers to view and update their profile information.
  3. Feedback:

    • Allows customers to provide feedback on previous bookings.
  4. Spending:

    • Displays spending history for the past year.
  5. Account Deletion:

    • Allows customers to delete their accounts.

Features for the Driver:

  1. View Profile:

    • Displays driver's profile details.
  2. Update Profile:

    • Allows drivers to update their profile information.
  3. View Cab Details:

    • Displays details of the assigned cab.
  4. Update Cab Details:

    • Allows drivers to update details of the assigned cab.
  5. View Earnings:

    • Displays total earnings based on fares collected.
  6. View Trips:

    • Displays details of all trips made by the assigned cab.

Working of Features:

Each feature utilizes embedded SQL queries to fetch required data from the database. Keywords such as SELECT, GROUP BY, ORDER BY, JOINS, WHERE, SUM, AVG, UPDATE, SET, DELETE, ROUND, HAVING, LIMIT, NULL, etc., are employed in the queries. While each feature has a different type of query, they all share a common goal - fetching the necessary data from the database.

About

DBMSproj


Languages

Language:Python 100.0%