Giter VIP home page Giter VIP logo

carrentalco's Introduction

car-rental-company-database-sql

Description of the Problem: A car rental company (let's call it CRC) wants to develop a relational database with given data below, Car rental company has 6 entities,they are :

  1. "Car" table with 12 columns: CarID (primary key), Make, Model, Year_of_Production, Engine_Size, Fuel_Type, Number_of_Passengers, Registration_Number, Purchase_Price, Purchase_Date, Rent_Price, and Insurance_Details.

  2. "Garage" table with 5 columns: GarageID (primary key), Garage_Name, Address, Range_of_Services, and Payment_Terms.

  3. "Expenditures" table with 5 columns: ExpenditureID (primary key), Expense_Type, Amount, Date, and Description.

  4. "Revenues" table with 5 columns: RevenueID (primary key), Revenue_Type, Amount, Date, and Description.

  5. "Customer" table with 8 columns: CustomerID (primary key), Name, Address, Telephone_Number, Driving_License_Number, Credit_Card_Details, Booking_Details, and Payment_Method.

  6. "Car_Garage" table with 3 columns: CarID, GarageID, and a composite primary key of CarID and GarageID, with foreign key references to the CarID and GarageID columns in the "Car" and "Garage" tables, respectively.

  7. "Customer_Car" table with 3 columns: CustomerID, CarID, and a composite primary key of CustomerID and CarID, with foreign key references to the CustomerID and CarID columns in the "Customer" and "Car" tables, respectively.

For Database Diagram we can use SQL Workbench to create the tables and insert a few records into the tables to test queries below.

carRentalCoRELATIONALSCHEMA

carrentalco's People

Contributors

vivekchavan14 avatar

Watchers

 avatar

carrentalco's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.