Docsity

Hotel Management System: Database Implementation and Schema Diagram, Study notes of Computer Science

Toggle sidebar
bg1
Project Report on
Hotel Management System
Developed by
Pankhania Aanandi (IT-081) Department of IT, DD University
Nadpara Princy (IT-074) Department of IT, DD University
Guided By
Internal Guide:
Prof. Vidhi B. Chaudhari
Department of Information Technology
Faculty of Technology
DD University
Department of Information Technology
Faculty of Technology, Dharmsinh Desai University
College Road, Nadiad-387001
October-2020
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23

Partial preview of the text

Download Hotel Management System: Database Implementation and Schema Diagram and more Study notes Computer Science in PDF only on Docsity!

Project Report on

Hotel Management System

Developed by

Pankhania Aanandi (IT-081) Department of IT, DD University Nadpara Princy (IT-074) Department of IT, DD University

Guided By

Internal Guide:

Prof. Vidhi B. Chaudhari

Department of Information Technology

Faculty of Technology

DD University

Department of Information Technology

Faculty of Technology, Dharmsinh Desai University

College Road, Nadiad- 387001

October- 2020

2 | P a g e DHARMSINH DESAI UNIVERSITY

NADIAD- 3 87001, GUJARAT

CERTIFICATE

This is to certify that the project entitled “ Hotel Management System ” is bonafied

report of the work carried out by

  1. Ms. Aanandi Pankhania, Student ID No : 18ITUBS
  2. Ms. Princy Nadpara , Student ID No : 18ITUOS of Department of Information Technology, semester V, under the guidance and supervision for the subject Database Management System. They were involved in Project training during academic year 2020-2021. Prof. Vidhi B. Chaudhari (Project Guide) Department of Information Technology, Faculty of Technology, Dharmsinh Desai University, Nadiad Date: Prof. Vipul Dabhi Head, Department of Information Technology, Faculty of Technology, Dharmsinh Desai University, Nadiad Date:

4 | P a g e

  • I. Certificate................................................................................................................... TABLE OF CONTENTS
  • II. Acknowledgement.................................................................................................... - 1.1 Current system 1. SYSTEM OVERVIEW - 1.2 Objectives of the Proposed System - 1.3 Advantages of the Proposed system (over current)
    1. E-R DIAGRAM
    1. DATA DICTIONARY
    1. SCHEMA DIAGRAM - 5.1 Create Schema 5. DATABASE IMPLEMENTION............................................................................ - 5.2 Insert Data values
      • 5 .3 Queries (Based on functions, group by, having, joins, sub query etc.)
      • 5.4 PL/SQL Block (Procedures and Exception Handling)
      • 5.5 Function …...........................................................................................................
      • 5.6 Triggers
      • 5.7 Cursors
    1. FUTURE ENHANCEMENTS OF THE SYSTEM
  • 7.BIBLIOGRAPHY.....................................................................................................

1.SYSTEM OVERVIEW

1.1CURRENT SYSTEM

  • The Current File Based System of Hotel Management requires a lot of time to store a record in a file or to Manage The data. The insertion is easy but Sort the data is more difficult and That would take much more time to do that.
  • Hotel Management would have lot of data like rooms’ details, room’s category, facilities provided by hotel, customer’s details, booking history, etc. Using Current Hotel Management above data can’t be retrieved easily and operations will not be easy to be done. So, we need a system which would take less efforts to do operations and Store the data will be easy and won’t require human hands.

1.2 OBJECTIVES OF THE PROPOSED SYSTEM

  • This project intends to introduce more user friendliness in the various activities such as record updating, maintenance, and searching.
  • The searching of record has been made quite simple as all the details of the customer can be obtained by simply keying in the identification of that customer.
  • Similarly, Record Maintenance and updating can also be accomplished by using the identification of the customer with all the details being automatically generated. These details are also being promptly automatically updates in the master file thus keeping the record absolutely up-to-date.
  • The Main objective of the entire Activity is to automate the process of day to day activities of Hotel like: 1. Add a New Customer 2. Assign a Room and required facilities as per Customer’s demand 3. Admin can add new Room categories and Facilities whenever needed. 4. Computing the total Bill having charges of both Stay and Facilities too.

2.E-R DIAGRAM

3.DATA DICTIONARY

3.1 ADMIN

3. 2 ROOM_CATAGORY

3. 3 ROOM

3.7 PAYMENT

3.8 BOOKS

3.9 USES

3.10 CUSTOMER_MOBILE_NO

4.SCHEMA DIAGRAM

5.DATABASE IMPLEMENTATION

5.1 CREATE SCHEMA

5.1.1 ADMIN:

CREATE TABLE ADMIN ( AID VARCHAR(5) NOT NULL, PRIMARY KEY (AID) ); 5.1.2 FACILITIES: CREATE TABLE FACILITIES ( FID VARCHAR(5) NOT NULL, FNAME VARCHAR(10) NOT NULL, FAMOUNT INT NOT NULL, AID VARCHAR(5) NOT NULL, PRIMARY KEY (FID), FOREIGN KEY (AID) REFERENCES ADMIN(AID) ); 5.1.3 ROOM_CATAGORY: CREATE TABLE ROOM_CATAGORY ( RCNAME VARCHAR(10) NOT NULL, RCID VARCHAR(5) NOT NULL, MAX_GUESTS NUMERIC(2) NOT NULL, TOTAL_ROOMS INT NOT NULL, ROOM_PRICE INT NOT NULL, DESCRIPTION VARCHAR(15), AID VARCHAR(5) NOT NULL, PRIMARY KEY (RCID), FOREIGN KEY (AID) REFERENCES ADMIN(AID) );

5.1.4 ROOM:

CREATE TABLE ROOM ( ROOM_NO INT NOT NULL, ROOM_TYPE VARCHAR(10) NOT NULL, RCID VARCHAR(5) NOT NULL, PRIMARY KEY (ROOM_NO), FOREIGN KEY (RCID) REFERENCES ROOM_CATAGORY(RCID) ); 5.1. 5 CUSTOMER: CREATE TABLE CUSTOMER ( CID VARCHAR(5) NOT NULL, FNAME VARCHAR(10) NOT NULL, LNAME VARCHAR(10) NOT NULL, ADDR VARCHAR(20) NOT NULL, PINCODE NUMERIC(6) NOT NULL, DOB DATE NOT NULL, P_ID VARCHAR(5) NOT NULL, PRIMARY KEY (CID), FOREIGN KEY (P_ID) REFERENCES PAYMENT(P_ID); ); 5.1. 6 PINCODE: CREATE TABLE PINCOE ( PINCODE NUMERIC(6) NOT NULL, CITY VARCHAR(10) NOT NULL, PRIMARY KEY (PINCODE) ); 5.1. 7 CITY: CREATE TABLE CITY ( CITY VARCHAR(10) NOT NULL, STATE VARCHAR(10) NOT NULL, PRIMARY KEY (CITY) );

5.1.1 1 USES:

CREATE TABLE USES ( CID VARCHAR(5) NOT NULL, FID VARCHAR(5) NOT NULL, PRIMARY KEY (CID, FID), FOREIGN KEY (CID) REFERENCES CUSTOMER(CID), FOREIGN KEY (FID) REFERENCES FACILITIES(FID) ); 5.1.1 2 CUSTOMER_MOBILE_NO: CREATE TABLE CUSTOMER_MOBILE_NO ( MOBILE_NO NUMERIC(10) NOT NULL, CID VARCHAR(5) NOT NULL, PRIMARY KEY (MOBILE_NO, CID), FOREIGN KEY (CID) REFERENCES CUSTOMER(CID) );

5.2 INSERT DATA VALUE

5.2.1 ADMIN

INSERT INTO ADMIN VALUES('A1'); 5.2.2 FACILITIES INSERT INTO FACILITIES(FID,FNAME,FAMOUNT,AID) VALUES ('F01', 'SPA', 5000, 'A1'), ('F02', 'SWIMMING POOL', 3000, 'A1'), ('F03', 'PARKING', 1000, 'A1'), ('F04', 'DANCE BAR', 4000, 'A1'), ('F05', 'TRANSPORTATION', 6000, 'A1'), ('F06', 'GAME ZONE', 1000, 'A1'), ('F07', 'BANQUET HALL', 5000, 'A1');

5.2.3 ROOM_CATAGORY

INSERT INTO ROOM_CATAGORY( RCNAME, RCID, MAX_GUESTS,

TOTAL_ROOMS, ROOM_PRICE, DESCRIPTION, AID) VALUES

('SINGLE', 'R01', 1, 15, 2500, 'WHICH HAS SINGLE BED', 'A1'), ('TRIPLE', 'R02', 3, 10, 4000, 'THREE TWIN BEDS', 'A1'), ('QUAD', 'R03', 4, 10, 5500, 'MORE THAN TWO BEDS', 'A1'), ('QUEEN', 'R04', 2, 20, 8500, 'QUEEN SIZED BED', 'A1'), ('KING', 'R05', 2, 15, 10000, 'KING SIZED BED', 'A1'), ('TWIN', 'R06', 2, 10, 3000, 'TWO TWIN BEDS', 'A1'), ('DUPLEX', 'R07', 4, 10, 8000, 'TWO BEDS WITH TWO FLOORS', 'A1');

5.2.6 PINCODE

INSERT INTO PINCODE(PINCODE,CITY) VALUES

(641009, 'Coimbatore'), (110035, 'Delhi'), (110048, 'Delhi'), (360005, 'Rajkot'), (360006, 'Rajkot'), (360007, 'Rajkot'), (395001, 'Surat'), (395002, 'Surat'), (400001, 'Mumbai'), (400002, 'Mumbai'), (400009, 'Mumbai'), (700007, 'Kolkata'), (302001, 'Jaipur'), (302011, 'Jaipur'), (302098, 'Udaipur'), (176605, 'Jamnagar'), (387001, 'Nadiad'), (322749, 'Pune'), (560008, 'Bangalore');

5.2.7 CITY

INSERT INTO CITY(CITY,STATE) VALUES

('Coimbatore', 'Tamil Nadu'), ('Delhi', 'Delhi'), ('Rajkot', 'Gujarat'), ('Jamnagar', 'Gujarat'), ('Surat', 'Gujarat'), ('Nadiad', 'Gujarat'), ('Mumbai', 'Maharashtra'), ('Pune', 'Maharashtra'), ('Kolkata', 'West Bengal'), ('Bangalore', 'Karnataka'), ('Jaipur', 'Rajasthan'), ('Udaipur', 'Rajasthan'); 5.2.8 BILL INSERT INTO BILL(BILL_ID,ROOM_NO,BILL_DATE,CID,FID) VALUES ('B01', 101, '2019- 04 - 10', 'C01', 'F01'), ('B02', 102, '2019- 02 - 20', 'C02', 'F01'), ('B03', 103, '2019- 05 - 01', 'C03', 'F03'), ('B04', 104, '2020- 03 - 02', 'C04', 'F03'), ('B05', 105, '2018- 08 - 10', 'C05', 'F06'), ('B06', 106, '2019- 02 - 05', 'C06', 'F02'), ('B07', 107, '2019- 04 - 10', 'C07', 'F07'), ('B08', 108, '2017- 01 - 06', 'C08', 'F03'), ('B09', 109, '2015- 04 - 10', 'C09', 'F05'), ('B10', 110, '2016- 03 - 10', 'C10', 'F04'), ('B11', 111, '2019- 09 - 03', 'C11', 'F03'), ('B12', 112, '2020- 01 - 01', 'C12', 'F01'), ('B13', 113, '2019- 10 - 02', 'C13', 'F02'), ('B14', 114, '2018- 11 - 06', 'C14', 'F05'), ('B15', 115, '2018- 12 - 30', 'C15', 'F03');