Skip to content

A fully normalized Hotel Booking System Database designed using PostgreSQL, following 3rd Normal Form (3NF) principles. This project demonstrates real-world database design, indexing, stored procedures, and query optimization.

Notifications You must be signed in to change notification settings

Hamza-Rafique/hotel-booking-system-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏨 Hotel Booking System Database

A fully normalized Hotel Booking System Database designed using PostgreSQL, following 3rd Normal Form (3NF) principles.
This project demonstrates real-world database design, indexing, stored procedures, and query optimization.


πŸ“Œ Features

  • βœ… 9 normalized tables (3NF)
  • βœ… Proper foreign key relationships
  • βœ… Indexes for performance optimization
  • βœ… Stored procedures for business logic
  • βœ… Query optimization using EXPLAIN ANALYZE
  • βœ… Clean and professional SQL structure

πŸ—‚ Database Tables

  • users
  • hotels
  • room_types
  • rooms
  • bookings
  • payments
  • amenities
  • room_amenities
  • reviews

βš™οΈ Technologies Used

  • PostgreSQL
  • SQL
  • GitHub Codespaces

πŸš€ How to Run the Project

  1. Open repository in GitHub Codespaces
  2. Install PostgreSQL
  3. Create database:
    CREATE DATABASE hotel_db;
4.Run SQL files:
   ```sql
   \i schema/01_create_tables.sql
\i schema/02_indexes.sql
\i schema/03_stored_procedures.sql

About

A fully normalized Hotel Booking System Database designed using PostgreSQL, following 3rd Normal Form (3NF) principles. This project demonstrates real-world database design, indexing, stored procedures, and query optimization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published