Weirdcraft
MSc Advanced Database2025Master's Degree (Semester 1 DSA)

Car Rental Enterprise Database Management System

Enterprise-grade relational database architecture modeling vehicle fleets, dynamic reservations, customer identification, and multi-branch transactional ledgers.

Unique Project Permalink & Local Reference
Unique Shareable Link/portfolio/car-rental-dbms
Local Workspace Origin PathD:\Masters\Sem 1\DSA\77608019_Anil_Subedi

Project Overview & Architecture

Conceived and engineered for the Master's level Database Systems & Applications module. The project constructs a fully normalized relational schema simulating a multi-location vehicle rental enterprise. It integrates entity-relationship definitions, integrity constraints, indexing strategies, and automated PL/SQL transactional triggers to guarantee zero reservation conflicts and real-time maintenance logging.

Key Implementation Highlights

  • ✓Engineered full production-ready SQL script (f124077.sql) with declarative schema definitions.
  • ✓Modeled branches, fleet inventories, rental contracts, maintenance logs, and financial transactions.
  • ✓Strict third normal form (3NF) compliance eliminating data anomalies and redundant keys.
  • ✓Recorded video presentation and technical dossier detailing architecture and query execution plans.

Implementation Source Code

1 File
Car Rental Enterprise Database Management System Source Codesql
File origin: D:\Masters\Sem 1\DSA\77608019_Anil_Subedi\f124077.sql
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849-- Application 124077: Cars4U Enterprise Rental System
-- Oracle Database Physical Schema & Integrity Constraints

CREATE TABLE BRANCH (
    branch_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    branch_name VARCHAR2(100) NOT NULL,
    street_address VARCHAR2(200) NOT NULL,
    city VARCHAR2(100) NOT NULL,
    phone_number VARCHAR2(20) NOT NULL
);

CREATE TABLE VEHICLE_CATEGORY (
    category_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    category_name VARCHAR2(50) NOT NULL,
    daily_rate NUMBER(10,2) NOT NULL,
    luggage_capacity NUMBER NOT NULL
);

CREATE TABLE VEHICLE (
    vehicle_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    vin VARCHAR2(17) UNIQUE NOT NULL,
    make VARCHAR2(50) NOT NULL,
    model VARCHAR2(50) NOT NULL,
    year NUMBER(4) NOT NULL,
    current_mileage NUMBER NOT NULL,
    status VARCHAR2(20) DEFAULT 'AVAILABLE' CHECK (status IN ('AVAILABLE', 'RENTED', 'MAINTENANCE')),
    branch_id NUMBER REFERENCES BRANCH(branch_id),
    category_id NUMBER REFERENCES VEHICLE_CATEGORY(category_id)
);

CREATE TABLE CUSTOMER (
    customer_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    first_name VARCHAR2(50) NOT NULL,
    last_name VARCHAR2(50) NOT NULL,
    email VARCHAR2(100) UNIQUE NOT NULL,
    driver_license_no VARCHAR2(50) UNIQUE NOT NULL
);

CREATE TABLE RENTAL_BOOKING (
    booking_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    customer_id NUMBER NOT NULL REFERENCES CUSTOMER(customer_id),
    vehicle_id NUMBER NOT NULL REFERENCES VEHICLE(vehicle_id),
    pickup_branch_id NUMBER NOT NULL REFERENCES BRANCH(branch_id),
    return_branch_id NUMBER NOT NULL REFERENCES BRANCH(branch_id),
    start_date DATE NOT NULL,
    end_date DATE NOT NULL,
    total_amount NUMBER(10,2) NOT NULL,
    booking_status VARCHAR2(20) DEFAULT 'CONFIRMED'
);
49 linesVerified from local workspace

Technologies & Tools

Oracle SQLRelational Database DesignE-R ModelingDatabase Normalization (3NF)PL/SQLData Integrity & Constraints

Academic Classification

Program / FocusMaster's Degree (Semester 1 DSA)
Project Timeline2025

More in Masters & College Projects

View all in category
Weirdcraft

The municipal department of curiosities: hand-built games, physics toys, and a gallery that re-hangs itself every midnight.

© 2026 WEIRDCRAFT · Municipal Dept. of Curiosities

Free admission · No trackers · Open all night