SlideShare a Scribd company logo
1 of 1
Download to read offline
CASE WHEN internet_use = 1 AND internet_days = . THEN 1 ELSE 0 END AS internet_flag,
room_rate + 20 * (num_guest - 1) AS total_rate_per_night, CASE WHEN internet_flag = 0
THEN total_rate_per_night * nights + 9.95 * internet_days ELSE total_rate_per_night * nights
END AS subtotal, subtotal + subtotal * 11.25/100 AS grand_total FROM hotel2019; the answer
you gave wasn't correct. this is how the out ought to look; Room number Check-In Date Check-
Out Date Number of Guests Internet Use Days of Internet Use Room Rate Grand Total 1291
04/09/2019 04/13/2019 1 YES . $125 $556.25 Person Name goes here Title goes here Room
number Check-In Date Check-Out Date Number of Guests Room Rate Grand Total 220
04/03/2019 04/12/2019 5 $205 $2,875.70 241 04/01/2019 04/15/2019 1 $245 $3,849.08 809
04/08/2019 04/15/2019 3 $305 $2,686.69

More Related Content

More from sales88

Caso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdf
Caso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdfCaso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdf
Caso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdf
sales88
 
Caso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdf
Caso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdfCaso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdf
Caso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdf
sales88
 
Caso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdf
Caso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdfCaso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdf
Caso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdf
sales88
 
Caso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdf
Caso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdfCaso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdf
Caso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdf
sales88
 
Caso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdf
Caso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdfCaso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdf
Caso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdf
sales88
 
Case studyData Protect and PrivacyHuman beings value their priva.pdf
Case studyData Protect and PrivacyHuman beings value their priva.pdfCase studyData Protect and PrivacyHuman beings value their priva.pdf
Case studyData Protect and PrivacyHuman beings value their priva.pdf
sales88
 
CASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdf
CASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdfCASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdf
CASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdf
sales88
 
Case Study Liberty and the Elderly Patient Ronald is 71 years old..pdf
Case Study Liberty and the Elderly Patient Ronald is 71 years old..pdfCase Study Liberty and the Elderly Patient Ronald is 71 years old..pdf
Case Study Liberty and the Elderly Patient Ronald is 71 years old..pdf
sales88
 
Case Study AMr. P tripped and broke her left hip while attempting.pdf
Case Study AMr. P tripped and broke her left hip while attempting.pdfCase Study AMr. P tripped and broke her left hip while attempting.pdf
Case Study AMr. P tripped and broke her left hip while attempting.pdf
sales88
 
Case Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdf
Case Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdfCase Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdf
Case Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdf
sales88
 
Case presentation Isabelle is a four-year-old girl who lives with he.pdf
Case presentation Isabelle is a four-year-old girl who lives with he.pdfCase presentation Isabelle is a four-year-old girl who lives with he.pdf
Case presentation Isabelle is a four-year-old girl who lives with he.pdf
sales88
 
Cap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdf
Cap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdfCap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdf
Cap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdf
sales88
 
Can yu please make an executive summary of thisCreating and.pdf
Can yu please make an executive summary of thisCreating and.pdfCan yu please make an executive summary of thisCreating and.pdf
Can yu please make an executive summary of thisCreating and.pdf
sales88
 

More from sales88 (20)

Caso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdf
Caso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdfCaso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdf
Caso 21-3 Orden de prueba de deterioro Five Star Hotel Corporati.pdf
 
Caso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdf
Caso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdfCaso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdf
Caso 6.2 Seguro Mar�timo Cl�usula Inchmaree Un barco pesquero c.pdf
 
Caso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdf
Caso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdfCaso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdf
Caso 3.1 Firma de contadores Moss y McAdams Bruce Palmer hab�a t.pdf
 
Caso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdf
Caso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdfCaso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdf
Caso 2 (TV de Alta Definici�n La Gran Alianza) (1) Seg�n el caso .pdf
 
Caso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdf
Caso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdfCaso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdf
Caso 1 (8 puntos) Miguel y Cinthia Leatch viven en Covington, Ten.pdf
 
Caso 1 Agmmaglobulinemia ligada al X 1. Bill fue testamento duran.pdf
Caso 1 Agmmaglobulinemia ligada al X 1. Bill fue testamento duran.pdfCaso 1 Agmmaglobulinemia ligada al X 1. Bill fue testamento duran.pdf
Caso 1 Agmmaglobulinemia ligada al X 1. Bill fue testamento duran.pdf
 
Caso 1 Felipe R�os y Tiffany De Los Rios married filling jointl.pdf
Caso 1 Felipe R�os  y Tiffany De Los Rios married filling jointl.pdfCaso 1 Felipe R�os  y Tiffany De Los Rios married filling jointl.pdf
Caso 1 Felipe R�os y Tiffany De Los Rios married filling jointl.pdf
 
Case studyData Protect and PrivacyHuman beings value their priva.pdf
Case studyData Protect and PrivacyHuman beings value their priva.pdfCase studyData Protect and PrivacyHuman beings value their priva.pdf
Case studyData Protect and PrivacyHuman beings value their priva.pdf
 
CASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdf
CASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdfCASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdf
CASE STUDY [30 Marks] Former Tongaat Hulett bosses in court for frau.pdf
 
case study Private Practice Implements Safeguards for Waiting .pdf
case study Private Practice Implements Safeguards for Waiting .pdfcase study Private Practice Implements Safeguards for Waiting .pdf
case study Private Practice Implements Safeguards for Waiting .pdf
 
Case Study Liberty and the Elderly Patient Ronald is 71 years old..pdf
Case Study Liberty and the Elderly Patient Ronald is 71 years old..pdfCase Study Liberty and the Elderly Patient Ronald is 71 years old..pdf
Case Study Liberty and the Elderly Patient Ronald is 71 years old..pdf
 
Case Study AMr. P tripped and broke her left hip while attempting.pdf
Case Study AMr. P tripped and broke her left hip while attempting.pdfCase Study AMr. P tripped and broke her left hip while attempting.pdf
Case Study AMr. P tripped and broke her left hip while attempting.pdf
 
Case Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdf
Case Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdfCase Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdf
Case Study - Rescuing a Troubled Project C.A. McCall-Peat Liberty Li.pdf
 
Case presentation Isabelle is a four-year-old girl who lives with he.pdf
Case presentation Isabelle is a four-year-old girl who lives with he.pdfCase presentation Isabelle is a four-year-old girl who lives with he.pdf
Case presentation Isabelle is a four-year-old girl who lives with he.pdf
 
Cap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdf
Cap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdfCap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdf
Cap�tulo 14 Preguntas para completar Selecciona las palabras neces.pdf
 
Cap�tulo 3 Pensamiento cr�tico Pregunta 10 Da ejemplos de voz acti.pdf
Cap�tulo 3 Pensamiento cr�tico Pregunta 10 Da ejemplos de voz acti.pdfCap�tulo 3 Pensamiento cr�tico Pregunta 10 Da ejemplos de voz acti.pdf
Cap�tulo 3 Pensamiento cr�tico Pregunta 10 Da ejemplos de voz acti.pdf
 
Cap�tulo 6 Grupos y trabajo en equipo1.Definir grupo y equipo.2.pdf
Cap�tulo 6 Grupos y trabajo en equipo1.Definir grupo y equipo.2.pdfCap�tulo 6 Grupos y trabajo en equipo1.Definir grupo y equipo.2.pdf
Cap�tulo 6 Grupos y trabajo en equipo1.Definir grupo y equipo.2.pdf
 
Can yu please make an executive summary of thisCreating and.pdf
Can yu please make an executive summary of thisCreating and.pdfCan yu please make an executive summary of thisCreating and.pdf
Can yu please make an executive summary of thisCreating and.pdf
 
Can you summarize Marthas ideas about foreign-funded medical resear.pdf
Can you summarize Marthas ideas about foreign-funded medical resear.pdfCan you summarize Marthas ideas about foreign-funded medical resear.pdf
Can you summarize Marthas ideas about foreign-funded medical resear.pdf
 
Can you provide the full codes for the tasks belowTask 6 Set up a.pdf
Can you provide the full codes for the tasks belowTask 6 Set up a.pdfCan you provide the full codes for the tasks belowTask 6 Set up a.pdf
Can you provide the full codes for the tasks belowTask 6 Set up a.pdf
 

Recently uploaded

Recently uploaded (20)

Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

CASE WHEN internet_use = 1 AND internet_days = . THEN 1 ELSE 0 END A.pdf

  • 1. CASE WHEN internet_use = 1 AND internet_days = . THEN 1 ELSE 0 END AS internet_flag, room_rate + 20 * (num_guest - 1) AS total_rate_per_night, CASE WHEN internet_flag = 0 THEN total_rate_per_night * nights + 9.95 * internet_days ELSE total_rate_per_night * nights END AS subtotal, subtotal + subtotal * 11.25/100 AS grand_total FROM hotel2019; the answer you gave wasn't correct. this is how the out ought to look; Room number Check-In Date Check- Out Date Number of Guests Internet Use Days of Internet Use Room Rate Grand Total 1291 04/09/2019 04/13/2019 1 YES . $125 $556.25 Person Name goes here Title goes here Room number Check-In Date Check-Out Date Number of Guests Room Rate Grand Total 220 04/03/2019 04/12/2019 5 $205 $2,875.70 241 04/01/2019 04/15/2019 1 $245 $3,849.08 809 04/08/2019 04/15/2019 3 $305 $2,686.69