SlideShare a Scribd company logo
1 of 20
HOTEL CUSTOMER
DATABASE
END - TERM GROUP PROJECT
PRESENTED BY :- GROUP 6
Power Ranger ⚡️
MEMBERS OF GROUP
ANSHUL YUVRAJ
VAIBHAV JOYAAL
PRATIKSHA
AAKANXA
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 First_Name, contact_number FROM Guest_data
WHERE LENGTH(contact_number) < 10 ;
TO FETCH THE INCOMPLETE CONTACT NUMBER.
SELECT 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, 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.
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 room_number, guest_status, room_availability, check_out_date AS
Room_Available_FROM guest_data WHERE guest_status='Checked-Out’
AND room_availability= 'Unavailable'
TO KNOW ERRORS FROM DIFFERENT CRITERIA.

More Related Content

Similar to MYSQL PPT

Hotel Management System
Hotel Management SystemHotel Management System
Hotel Management Systemovais99
 
M tech hms_overview_v3.0
M tech hms_overview_v3.0M tech hms_overview_v3.0
M tech hms_overview_v3.0ovais99
 
Eurosentiment - Developing a new service
Eurosentiment - Developing a new serviceEurosentiment - Developing a new service
Eurosentiment - Developing a new servicemario_munoz
 
Selecting the PMS.pptx
Selecting the PMS.pptxSelecting the PMS.pptx
Selecting the PMS.pptxPaoloPineda11
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingashu6
 
Group Project 650 Report2
Group Project 650 Report2Group Project 650 Report2
Group Project 650 Report2Yazeed Alkarzai
 
Intro to PMS.pdf
Intro to PMS.pdfIntro to PMS.pdf
Intro to PMS.pdfJKPineda1
 
A Data Model for Listing Apartments
A Data Model for Listing ApartmentsA Data Model for Listing Apartments
A Data Model for Listing ApartmentsAditiShah101
 
Whitepaper - Beginner's Guide to Hotel Revenue Management
Whitepaper - Beginner's Guide to Hotel Revenue ManagementWhitepaper - Beginner's Guide to Hotel Revenue Management
Whitepaper - Beginner's Guide to Hotel Revenue ManagementDuetto
 
Eurosentiment - Developing a new service
Eurosentiment - Developing a new serviceEurosentiment - Developing a new service
Eurosentiment - Developing a new servicemario_munoz
 
Accounts of hotel industeries
Accounts of hotel industeriesAccounts of hotel industeries
Accounts of hotel industeriesshivangi tomar
 
computer science subjects ppt week sheet
computer science subjects ppt week sheetcomputer science subjects ppt week sheet
computer science subjects ppt week sheetaishali6660
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsisRahulraj Nirala
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingashu6
 
SERVICES MANAGEMENT IN HOTEL INDUSTRY
SERVICES  MANAGEMENT IN HOTEL INDUSTRY SERVICES  MANAGEMENT IN HOTEL INDUSTRY
SERVICES MANAGEMENT IN HOTEL INDUSTRY Dhrubaji Mandal ♛
 
Chatbot data to Topic modelling
Chatbot data to Topic modellingChatbot data to Topic modelling
Chatbot data to Topic modellingSayan Mondal
 
Front Office Department Design By Austin
Front Office Department Design By AustinFront Office Department Design By Austin
Front Office Department Design By AustinAustin Nway Aye Maung
 

Similar to MYSQL PPT (20)

front office
front officefront office
front office
 
DHANUSH.pdf
DHANUSH.pdfDHANUSH.pdf
DHANUSH.pdf
 
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
 
Eurosentiment - Developing a new service
Eurosentiment - Developing a new serviceEurosentiment - Developing a new service
Eurosentiment - Developing a new service
 
Selecting the PMS.pptx
Selecting the PMS.pptxSelecting the PMS.pptx
Selecting the PMS.pptx
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Group Project 650 Report2
Group Project 650 Report2Group Project 650 Report2
Group Project 650 Report2
 
Intro to PMS.pdf
Intro to PMS.pdfIntro to PMS.pdf
Intro to PMS.pdf
 
A Data Model for Listing Apartments
A Data Model for Listing ApartmentsA Data Model for Listing Apartments
A Data Model for Listing Apartments
 
Whitepaper - Beginner's Guide to Hotel Revenue Management
Whitepaper - Beginner's Guide to Hotel Revenue ManagementWhitepaper - Beginner's Guide to Hotel Revenue Management
Whitepaper - Beginner's Guide to Hotel Revenue Management
 
Eurosentiment - Developing a new service
Eurosentiment - Developing a new serviceEurosentiment - Developing a new service
Eurosentiment - Developing a new service
 
Accounts of hotel industeries
Accounts of hotel industeriesAccounts of hotel industeries
Accounts of hotel industeries
 
computer science subjects ppt week sheet
computer science subjects ppt week sheetcomputer science subjects ppt week sheet
computer science subjects ppt week sheet
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsis
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
SERVICES MANAGEMENT IN HOTEL INDUSTRY
SERVICES  MANAGEMENT IN HOTEL INDUSTRY SERVICES  MANAGEMENT IN HOTEL INDUSTRY
SERVICES MANAGEMENT IN HOTEL INDUSTRY
 
Chatbot data to Topic modelling
Chatbot data to Topic modellingChatbot data to Topic modelling
Chatbot data to Topic modelling
 
Hotel Management System document
Hotel Management System documentHotel Management System document
Hotel Management System document
 
Front Office Department Design By Austin
Front Office Department Design By AustinFront Office Department Design By Austin
Front Office Department Design By Austin
 

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

Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...mikehavy0
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?RemarkSemacio
 
Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...
Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...
Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...Voces Mineras
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...yulianti213969
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxAniqa Zai
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...Payal Garg #K09
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesBoston Institute of Analytics
 
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...varanasisatyanvesh
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxParas Gupta
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchersdarmandersingh4580
 
DAA Assignment Solution.pdf is the best1
DAA Assignment Solution.pdf is the best1DAA Assignment Solution.pdf is the best1
DAA Assignment Solution.pdf is the best1sinhaabhiyanshu
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样wsppdmt
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格q6pzkpark
 

Recently uploaded (20)

Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?
 
Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...
Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...
Las implicancias del memorándum de entendimiento entre Codelco y SQM según la...
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptx
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get CytotecAbortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
 
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
 
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted KitAbortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
DAA Assignment Solution.pdf is the best1
DAA Assignment Solution.pdf is the best1DAA Assignment Solution.pdf is the best1
DAA Assignment Solution.pdf is the best1
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 

MYSQL PPT

  • 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. 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.
  • 4. 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.
  • 5. 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
  • 6. 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)……………………………..
  • 7.
  • 8. SELECT sum(amount_paid) AS Total_Revenue FROM Guest_data IF WE WANT TO FIND TOTAL REVENUE OF THE HOTEL ?
  • 9. SELECT count(service_used) AS Most_Preferred_service, service_used FROM Guest_data GROUP BY service_used MOST PREFERRED SERVICE USED BY GUESTS.
  • 10. SELECT First_Name, contact_number FROM Guest_data WHERE LENGTH(contact_number) < 10 ; TO FETCH THE INCOMPLETE CONTACT NUMBER.
  • 11. SELECT 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.
  • 12. 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.
  • 13. 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.
  • 14. 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.
  • 15. 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.
  • 16. 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.
  • 17. 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.
  • 18. 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.
  • 19. 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.
  • 20. SELECT room_number, guest_status, room_availability, check_out_date AS Room_Available_FROM guest_data WHERE guest_status='Checked-Out’ AND room_availability= 'Unavailable' TO KNOW ERRORS FROM DIFFERENT CRITERIA.