DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Database Design (http://www.daniweb.com/forums/forum142.html)
-   -   Hotel Reservation System (http://www.daniweb.com/forums/thread51355.html)

gandil Jul 30th, 2006 7:59 pm
Hotel Reservation System
 
Can you help me to normalize Online Hotel Reservation System. In the database I will store information about the hotels (name, city, country, number of stars, room prices, total number of double rooms, total number of single rooms, number of available rooms, etc); customers (name, email, telephone, address, username, password, etc); reservations (username of the customer who made the reservation, Hotel ID, date of arrival, date of departure, total cost, and etc.).

My Idea:
############
Table Customer:
CustomerID

First Name
Last Name
Gender
Address
Phone
Mail


##############
Table Hotels
HotelID
Name
Address
City
Phone
Number of Stars


###############
Reservation Table
ReservationID
CustomerID
HotelID
Reservation Date
Arrival Date
Departure Date
RoomCategoryID
Status

TotalCost

###############

Table Room Categories
Category ID
Category Name
Number of beds


################
Table Rooms
HotelID

Room Number
Category ID

################
Table Room Price
HotelID

Category ID
Season
Duration
Room Price
################


pritaeas Aug 3rd, 2006 5:17 am
Re: Hotel Reservation System
 
The normalization is okay at this point.

Is this going to be a live system, or just a test ? Because if you want to book rooms, you'll need to know what rooms are available. Suppose a room cannot be sold due to maintenance.

funkyduck Aug 31st, 2006 12:52 pm
Re: Hotel Reservation System
 
i have made a hotel database using microsoft access. its only basic, such as booking rooms and sees which rooms are avaliable using simple sql. you can download it and the documentation from my website http://www.e-male.me.uk/avce_unit6.html

i hope that helps you a little!

carolraydon Jan 23rd, 2007 9:15 pm
Re: Hotel Reservation System
 
Hi,
You need to break your reservations table into 'main' & 'details': what if a family books 2 rooms? What if they change rooms during their stay? You want it to show up as one reservation, with it's various details.
Also, you have number of beds, but not number of guests...
Have fun.

BeEasy Feb 26th, 2008 6:12 am
Re: Hotel Reservation System
 
Quote:

Reservation Date
Arrival Date
Departure Date
RoomCategoryID
Status
TotalCost

Hi

I think you would have a problem with this table because it don't refer to the customer

you must make a link between the two tables

regards

CasTex Jun 20th, 2009 1:27 pm
Re: Hotel Reservation System
 
Reservation Date
Arrival Date
Departure Date
RoomCategoryID
Status
TotalCost


All times are GMT -4. The time now is 11:12 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC