SlideShare a Scribd company logo
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

Hotel Management System
Hotel Management SystemHotel Management System
Hotel Management System
ovais99
 
M tech hms_overview_v3.0
M tech hms_overview_v3.0M tech hms_overview_v3.0
M tech hms_overview_v3.0
ovais99
 
front office , RIYAS
front office  , RIYASfront office  , RIYAS
front office , RIYASRiyas Ydr
 
Hospitality service design
Hospitality service designHospitality service design
Hospitality service design
Ashish Pandey
 
A Data Model for Listing Apartments
A Data Model for Listing ApartmentsA Data Model for Listing Apartments
A Data Model for Listing Apartments
AditiShah101
 
Accounts of hotel industeries
Accounts of hotel industeriesAccounts of hotel industeries
Accounts of hotel industeries
shivangi tomar
 
introductiontothe-fo-pjdetailed-181129042232.pptx
introductiontothe-fo-pjdetailed-181129042232.pptxintroductiontothe-fo-pjdetailed-181129042232.pptx
introductiontothe-fo-pjdetailed-181129042232.pptx
taduranharleydave80
 
introductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdfintroductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdf
ClarisseDeGuzman9
 
Introduction to the front office- (detailed )
Introduction to the front office- (detailed )Introduction to the front office- (detailed )
Introduction to the front office- (detailed )
Institute of Hotel Management, Hajipur, Patna, Bihar.
 
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.pptx
ThayalanOdniel1
 
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
Robert R. DeMonsi, Jr.
 
Hotel Management Software Presentation
Hotel Management Software PresentationHotel Management Software Presentation
Hotel Management Software Presentation
Vision 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 project
Mohammed Al Babeli
 
Datalot's DialDrive
Datalot's DialDriveDatalot's DialDrive
Datalot's DialDrive
Margo Dayal
 
Re-Serve Project Definition Document
Re-Serve Project Definition DocumentRe-Serve Project Definition Document
Re-Serve Project Definition Document
sean
 

Similar to hotel_customer_database.pptx (20)

Hotel Management System
Hotel Management SystemHotel Management System
Hotel Management System
 
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
 
introductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdfintroductiontothe-fo-pjdetailed-181129042232.pdf
introductiontothe-fo-pjdetailed-181129042232.pdf
 
Introduction to the front office- (detailed )
Introduction to the front office- (detailed )Introduction to the front office- (detailed )
Introduction to the front office- (detailed )
 
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
 

More from ADANI INSTITUTE OF DIGITAL TECHNOLOGY MANAGMENT

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

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

BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 

Recently uploaded (20)

BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 

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.