SlideShare a Scribd company logo
1 of 22
HOTEL CUSTOMER
DATABASE
END - TERM GROUP PROJECT
PRESENTED BY :- GROUP 6
Power Ranger ⚡️
MEMBERS OF GROUP
ANSHUL YUVRAJ
VAIBHAV JOYAAL
PRATIKSHA
AAKANXA
INDEX
o PROJECT OVERVIEW
o ABOUT HOTEL
o WHY WE ARE USING MY_SQL
o META DATA
o TABLE
o QUERIES
PROJECT OVERVIEW
In this project we are going to brief about
our hotel's database management and
discuss some of the queries which we
require to fetch the information in day to
day activities at front office and in sales
department. This database is a customer
database so the first task is to keep the
personal information of the our clients very
confidential.
ABOUT HOTEL
The ‘Hotel Fatehgarh’ is a small upscale
hotel known for its personalized guest
services and unique ambiance. The
management recognized the need to
modernize their operations and data
management processes.
Why we are using my_sql for customer
database ?
o Open-source relational database management
systems
o Highly Secure and Scalable
o Reliable, very fast and easy to use database server
o Supports many operating systems like Linux*
,Windows*, MacOS*, and others
Meta Data
CREATE TABLE Guest_data (Customer_Id INT, First_Name TEXT, Last_Name TEXT , Age
INT, DOB VARCHAR(20), Gender VARCHAR(10), Email VARCHAR(30), Contact_Number
VARCHAR(10), Address TEXT, Visit_Purpose TEXT, Guest_Status TEXT, check_In_date
DATE, check_out_date DATE, Number_of_Guest INT, Room_Type TEXT, Room_Rate INT ,
Room_Availability TEXT ,Previous_Visits INT, Room_Number INT , Payment_Method
TEXT, Amount_Paid INT , Service_Used TEXT , Ratings FLOAT)
Data
INSERT INTO Guest_data (Customer_Id, First_Name, Last_Name, Age, DOB, Gender, Email, Contact_Number, Address,
Visit_Purpose, Guest_Status, check_In_date, check_out_date, Number_of_Guest, Room_Type, Room_Rate,
Room_Availability,Previous_Visits, Room_Number, Payment_Method, Amount_Paid, Service_Used, Ratings)
VALUES
(1, 'Rahul', 'Gupta', 23, '01-01-2000', 'M', 'rahul@gmail.com', '9876543210', '123 Main Street, Mumbai', 'Tourism',
'Checked-In', '2023-01-27', '2023-01-30', 2, 'Deluxe', 2500, 'Unavailable', 2, 101, 'Credit Card', 5000.00, 'Restaurant',
3.5)……………………………..
SELECT sum(amount_paid) AS Total_Revenue FROM Guest_data
IF WE WANT TO FIND TOTAL REVENUE OF THE HOTEL ?
SELECT count(service_used) AS Most_Preferred_service, service_used FROM
Guest_data GROUP BY service_used
MOST PREFERRED SERVICE USED BY GUESTS.
SELECT room_number, guest_status, room_availability, check_out_date AS
Room_Available_From FROM guest_data WHERE guest_status='Checked-
Out’ AND room_availability= 'Unavailable'
TO KNOW ERRORS FROM DIFFERENT CRITERIA.
SELECT First_Name, contact_number FROM Guest_data
WHERE LENGTH(contact_number) < 10 ;
TO FETCH THE INCOMPLETE CONTACT NUMBER.
SELECT room_number, first_name, room_type, CASE WHEN check_in_date
= check_out_date THEN 'Same Day Check-in Check-out’
ELSE 'Normal Check-in Check-out ‘ END AS PRIORITY FROM guest_data
TO HELP HOUSEKEEPING DEPARTMENT TO PRIORITISE
THEIR WORK.
SELECT room_number, room_type, check_out_date AS Room_Available_From FROM
guest_data WHERE room type='AC Room’ AND room_availability='Available’
ORDER BY check out date
TO CHECK THE ROOM AVAILABILITY OF A
PARTICULAR ROOM TYPE.
SELECT extract(month from check_in_date) AS Month, count(*) AS
Bookings_Per_Month FROM guest_data GROUP BY extract(month from
check_in_date)
TO KNOW NUMBER OF GUESTS IN A PARTICULAR
MONTH.
SELECT room_type, count(room_type) AS Usage_Count FROM guest_data
GROUP BY room_type ORDER BY count (room_type)DESC
TO KNOW THE MOST PREFERRED ROOM TYPE.
SELECT age, count (Customer_Id) AS Age_Count FROM guest_data GROUP BY
age ORDER BY age
TO KNOW THE COUNT OF THE GUESTS OF
DIFFERENT AGE.
SELECT Customer_Id, First_Name, Last_Name, check_In_date, check_out_date,
Room_Rate, Amount_Paid, CASE WHEN (amount_paid - room_rate)
< 0 THEN ( amount paid - room rate) END AS Payment Pending FROM
guest_data;
TO KNOW IF THERE IS ANY PAYMENT PENDING.
SELECT Customer_Id, First_Name, Last_Name, check_In_date, check_out_date,
Room_Rate, Amount_Paid, CASE WHEN (amount paid - room rate) > 0 THEN
(amount_paid - room_rate) END AS Extra-Service_Amount
TO KNOW IF GUESTS ARE USING ANY OTHER
SERVICES PROVIDED AND ITS AMOUNT.
SELECT customer_id, first_name, last_name, contact_number, previous_visits,
CASE WHEN previous_visits >=5 THEN 'Free Restaurant Service’
END AS OFFER FROM guest_data ORDER BY OFFER DESC
TO PROVIDE OFFERS TO FREQUENT OR LOYAL
GUESTS.
SELECT customer_id, first_name, last_name, contact_number, check_in_date,
check_out_date, room_type, room_rate, service_used, payment_method, amount_paid
FROM Guest_data
TO FETCH ALL THE BILLING INFORMATION.
THANK YOU

More Related Content

Similar to hotel_customer_database.pptx

M tech hms_overview_v3.0
M tech hms_overview_v3.0M tech hms_overview_v3.0
M tech hms_overview_v3.0ovais99
 
front office , RIYAS
front office  , RIYASfront office  , RIYAS
front office , RIYASRiyas Ydr
 
Hospitality service design
Hospitality service designHospitality service design
Hospitality service designAshish Pandey
 
A Data Model for Listing Apartments
A Data Model for Listing ApartmentsA Data Model for Listing Apartments
A Data Model for Listing ApartmentsAditiShah101
 
Accounts of hotel industeries
Accounts of hotel industeriesAccounts of hotel industeries
Accounts of hotel industeriesshivangi tomar
 
introductiontothe-fo-pjdetailed-181129042232.pptx
introductiontothe-fo-pjdetailed-181129042232.pptxintroductiontothe-fo-pjdetailed-181129042232.pptx
introductiontothe-fo-pjdetailed-181129042232.pptxtaduranharleydave80
 
introductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdfintroductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdfClarisseDeGuzman9
 
Group Project 650 Report2
Group Project 650 Report2Group Project 650 Report2
Group Project 650 Report2Yazeed Alkarzai
 
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT - A Professional Service Of...
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT -  A Professional Service Of...MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT -  A Professional Service Of...
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT - A Professional Service Of...Robert R. DeMonsi, Jr.
 
MSS_PRESENTATION_G03.pptx
MSS_PRESENTATION_G03.pptxMSS_PRESENTATION_G03.pptx
MSS_PRESENTATION_G03.pptxThayalanOdniel1
 
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILS
MY  HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILSMY  HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILS
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILSRobert R. DeMonsi, Jr.
 
Hotel Management Software Presentation
Hotel Management Software PresentationHotel Management Software Presentation
Hotel Management Software PresentationVision Raval
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingashu6
 
Hotel management system project
Hotel management system projectHotel management system project
Hotel management system projectMohammed Al Babeli
 
Datalot's DialDrive
Datalot's DialDriveDatalot's DialDrive
Datalot's DialDriveMargo Dayal
 
Re-Serve Project Definition Document
Re-Serve Project Definition DocumentRe-Serve Project Definition Document
Re-Serve Project Definition Documentsean
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsisRahulraj Nirala
 

Similar to hotel_customer_database.pptx (20)

M tech hms_overview_v3.0
M tech hms_overview_v3.0M tech hms_overview_v3.0
M tech hms_overview_v3.0
 
front office , RIYAS
front office  , RIYASfront office  , RIYAS
front office , RIYAS
 
Hospitality service design
Hospitality service designHospitality service design
Hospitality service design
 
A Data Model for Listing Apartments
A Data Model for Listing ApartmentsA Data Model for Listing Apartments
A Data Model for Listing Apartments
 
Accounts of hotel industeries
Accounts of hotel industeriesAccounts of hotel industeries
Accounts of hotel industeries
 
introductiontothe-fo-pjdetailed-181129042232.pptx
introductiontothe-fo-pjdetailed-181129042232.pptxintroductiontothe-fo-pjdetailed-181129042232.pptx
introductiontothe-fo-pjdetailed-181129042232.pptx
 
Introduction to the front office- (detailed )
Introduction to the front office- (detailed )Introduction to the front office- (detailed )
Introduction to the front office- (detailed )
 
introductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdfintroductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdf
 
Group Project 650 Report2
Group Project 650 Report2Group Project 650 Report2
Group Project 650 Report2
 
JenniferWeng2016
JenniferWeng2016JenniferWeng2016
JenniferWeng2016
 
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT - A Professional Service Of...
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT -  A Professional Service Of...MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT -  A Professional Service Of...
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT - A Professional Service Of...
 
MSS_PRESENTATION_G03.pptx
MSS_PRESENTATION_G03.pptxMSS_PRESENTATION_G03.pptx
MSS_PRESENTATION_G03.pptx
 
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILS
MY  HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILSMY  HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILS
MY HOTEL OR CASINO LABOR COST OPTIMIZATION AUDIT APPROACH & DETAILS
 
Hotel Management Software Presentation
Hotel Management Software PresentationHotel Management Software Presentation
Hotel Management Software Presentation
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Hotel management system project
Hotel management system projectHotel management system project
Hotel management system project
 
Datalot's DialDrive
Datalot's DialDriveDatalot's DialDrive
Datalot's DialDrive
 
Re-Serve Project Definition Document
Re-Serve Project Definition DocumentRe-Serve Project Definition Document
Re-Serve Project Definition Document
 
Maneovre of Finance Taj
Maneovre of Finance TajManeovre of Finance Taj
Maneovre of Finance Taj
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsis
 

More from ADANI INSTITUTE OF DIGITAL TECHNOLOGY MANAGMENT (11)

attrition & retention Human Resources analytics
attrition & retention Human Resources analyticsattrition & retention Human Resources analytics
attrition & retention Human Resources analytics
 
Target_Company_Data_breach_2013_110million
Target_Company_Data_breach_2013_110millionTarget_Company_Data_breach_2013_110million
Target_Company_Data_breach_2013_110million
 
12th fail Manoj Kumar Sharma.pptx
12th fail Manoj Kumar Sharma.pptx12th fail Manoj Kumar Sharma.pptx
12th fail Manoj Kumar Sharma.pptx
 
uber data analytics
uber data analyticsuber data analytics
uber data analytics
 
jp morgan
jp morganjp morgan
jp morgan
 
AstraZeneca’s_pfm_casestudy.pptx
AstraZeneca’s_pfm_casestudy.pptxAstraZeneca’s_pfm_casestudy.pptx
AstraZeneca’s_pfm_casestudy.pptx
 
Netflix Case Study
Netflix Case StudyNetflix Case Study
Netflix Case Study
 
ASHARFI.pptx
ASHARFI.pptxASHARFI.pptx
ASHARFI.pptx
 
RURAL MANAGEMENT
RURAL MANAGEMENTRURAL MANAGEMENT
RURAL MANAGEMENT
 
Amul Value chain .pptx
Amul Value chain .pptxAmul Value chain .pptx
Amul Value chain .pptx
 
demandfunction.pptx
demandfunction.pptxdemandfunction.pptx
demandfunction.pptx
 

Recently uploaded

WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AIAGATSoftware
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfryanfarris8
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2
 

Recently uploaded (20)

WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in Uganda
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 

hotel_customer_database.pptx

  • 1. HOTEL CUSTOMER DATABASE END - TERM GROUP PROJECT PRESENTED BY :- GROUP 6 Power Ranger ⚡️
  • 2. MEMBERS OF GROUP ANSHUL YUVRAJ VAIBHAV JOYAAL PRATIKSHA AAKANXA
  • 3. INDEX o PROJECT OVERVIEW o ABOUT HOTEL o WHY WE ARE USING MY_SQL o META DATA o TABLE o QUERIES
  • 4. PROJECT OVERVIEW In this project we are going to brief about our hotel's database management and discuss some of the queries which we require to fetch the information in day to day activities at front office and in sales department. This database is a customer database so the first task is to keep the personal information of the our clients very confidential.
  • 5. ABOUT HOTEL The ‘Hotel Fatehgarh’ is a small upscale hotel known for its personalized guest services and unique ambiance. The management recognized the need to modernize their operations and data management processes.
  • 6. Why we are using my_sql for customer database ? o Open-source relational database management systems o Highly Secure and Scalable o Reliable, very fast and easy to use database server o Supports many operating systems like Linux* ,Windows*, MacOS*, and others
  • 7. Meta Data CREATE TABLE Guest_data (Customer_Id INT, First_Name TEXT, Last_Name TEXT , Age INT, DOB VARCHAR(20), Gender VARCHAR(10), Email VARCHAR(30), Contact_Number VARCHAR(10), Address TEXT, Visit_Purpose TEXT, Guest_Status TEXT, check_In_date DATE, check_out_date DATE, Number_of_Guest INT, Room_Type TEXT, Room_Rate INT , Room_Availability TEXT ,Previous_Visits INT, Room_Number INT , Payment_Method TEXT, Amount_Paid INT , Service_Used TEXT , Ratings FLOAT) Data INSERT INTO Guest_data (Customer_Id, First_Name, Last_Name, Age, DOB, Gender, Email, Contact_Number, Address, Visit_Purpose, Guest_Status, check_In_date, check_out_date, Number_of_Guest, Room_Type, Room_Rate, Room_Availability,Previous_Visits, Room_Number, Payment_Method, Amount_Paid, Service_Used, Ratings) VALUES (1, 'Rahul', 'Gupta', 23, '01-01-2000', 'M', 'rahul@gmail.com', '9876543210', '123 Main Street, Mumbai', 'Tourism', 'Checked-In', '2023-01-27', '2023-01-30', 2, 'Deluxe', 2500, 'Unavailable', 2, 101, 'Credit Card', 5000.00, 'Restaurant', 3.5)……………………………..
  • 8.
  • 9. SELECT sum(amount_paid) AS Total_Revenue FROM Guest_data IF WE WANT TO FIND TOTAL REVENUE OF THE HOTEL ?
  • 10. SELECT count(service_used) AS Most_Preferred_service, service_used FROM Guest_data GROUP BY service_used MOST PREFERRED SERVICE USED BY GUESTS.
  • 11. SELECT room_number, guest_status, room_availability, check_out_date AS Room_Available_From FROM guest_data WHERE guest_status='Checked- Out’ AND room_availability= 'Unavailable' TO KNOW ERRORS FROM DIFFERENT CRITERIA.
  • 12. SELECT First_Name, contact_number FROM Guest_data WHERE LENGTH(contact_number) < 10 ; TO FETCH THE INCOMPLETE CONTACT NUMBER.
  • 13. SELECT room_number, first_name, room_type, CASE WHEN check_in_date = check_out_date THEN 'Same Day Check-in Check-out’ ELSE 'Normal Check-in Check-out ‘ END AS PRIORITY FROM guest_data TO HELP HOUSEKEEPING DEPARTMENT TO PRIORITISE THEIR WORK.
  • 14. SELECT room_number, room_type, check_out_date AS Room_Available_From FROM guest_data WHERE room type='AC Room’ AND room_availability='Available’ ORDER BY check out date TO CHECK THE ROOM AVAILABILITY OF A PARTICULAR ROOM TYPE.
  • 15. SELECT extract(month from check_in_date) AS Month, count(*) AS Bookings_Per_Month FROM guest_data GROUP BY extract(month from check_in_date) TO KNOW NUMBER OF GUESTS IN A PARTICULAR MONTH.
  • 16. SELECT room_type, count(room_type) AS Usage_Count FROM guest_data GROUP BY room_type ORDER BY count (room_type)DESC TO KNOW THE MOST PREFERRED ROOM TYPE.
  • 17. SELECT age, count (Customer_Id) AS Age_Count FROM guest_data GROUP BY age ORDER BY age TO KNOW THE COUNT OF THE GUESTS OF DIFFERENT AGE.
  • 18. SELECT Customer_Id, First_Name, Last_Name, check_In_date, check_out_date, Room_Rate, Amount_Paid, CASE WHEN (amount_paid - room_rate) < 0 THEN ( amount paid - room rate) END AS Payment Pending FROM guest_data; TO KNOW IF THERE IS ANY PAYMENT PENDING.
  • 19. SELECT Customer_Id, First_Name, Last_Name, check_In_date, check_out_date, Room_Rate, Amount_Paid, CASE WHEN (amount paid - room rate) > 0 THEN (amount_paid - room_rate) END AS Extra-Service_Amount TO KNOW IF GUESTS ARE USING ANY OTHER SERVICES PROVIDED AND ITS AMOUNT.
  • 20. SELECT customer_id, first_name, last_name, contact_number, previous_visits, CASE WHEN previous_visits >=5 THEN 'Free Restaurant Service’ END AS OFFER FROM guest_data ORDER BY OFFER DESC TO PROVIDE OFFERS TO FREQUENT OR LOYAL GUESTS.
  • 21. SELECT customer_id, first_name, last_name, contact_number, check_in_date, check_out_date, room_type, room_rate, service_used, payment_method, amount_paid FROM Guest_data TO FETCH ALL THE BILLING INFORMATION.