SlideShare a Scribd company logo
1 of 1
Download to read offline
Connect to the dvdrental database. Answer both part 1 and 2 of this question. Write a query that
returns 6 columns from the payment table. Column 1: Total payment amount (sum) made during
morning hours (hour < 12 ) labled as am_sum Column 2: Total count of payments made during
morning hours (hour < 12 ) labled as am_count Column 3: total payment amount (sum) made
during evening hours (hour >= 12 ) labeled as pm_sum Column 4: Total count of payments made
during evening hours (hour >= 12 ) labled as pm_count Column 5: total payment amount (sum)
made during all hours labeled as total_sum Column 6: Total count of payments made during all
hours labled as total_count You MUST use SUM and CASE WHEN. Expected results: Hint: The
amount column tells you how much each payment was for. The payment_date column is a
timestamp that tells you when the payment was made. Describe what evidence is available to
suggest columns 1 through 4 are being calculated correct? In other words, how do you know
columns 1, 2, 3, and 4 are correct?

More Related Content

Similar to Payments by time of day from dvdrental database

CIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.comCIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.comclaric59
 
CIS 115 Education in iCounseling ---cis115.com
CIS 115 Education in  iCounseling ---cis115.comCIS 115 Education in  iCounseling ---cis115.com
CIS 115 Education in iCounseling ---cis115.comclaric59
 
Validation
ValidationValidation
ValidationJTHSICT
 
Dax queries.pdf
Dax queries.pdfDax queries.pdf
Dax queries.pdfntrnbk
 
Chapter 02 simulation examples
Chapter 02   simulation examplesChapter 02   simulation examples
Chapter 02 simulation examplesImran Ali Chaudhry
 
CIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comCIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comclaric130
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.comHarrisGeorg51
 
Cis 115 Effective Communication / snaptutorial.com
Cis 115  Effective Communication / snaptutorial.comCis 115  Effective Communication / snaptutorial.com
Cis 115 Effective Communication / snaptutorial.comBaileyao
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
 

Similar to Payments by time of day from dvdrental database (13)

CIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.comCIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.com
 
CIS 115 Education in iCounseling ---cis115.com
CIS 115 Education in  iCounseling ---cis115.comCIS 115 Education in  iCounseling ---cis115.com
CIS 115 Education in iCounseling ---cis115.com
 
Validation
ValidationValidation
Validation
 
Business Logistics Assignment Help
Business Logistics Assignment HelpBusiness Logistics Assignment Help
Business Logistics Assignment Help
 
Dax queries.pdf
Dax queries.pdfDax queries.pdf
Dax queries.pdf
 
Chapter 02 simulation examples
Chapter 02   simulation examplesChapter 02   simulation examples
Chapter 02 simulation examples
 
CIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comCIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.com
 
portfolio for data analytics.pdf
portfolio for data analytics.pdfportfolio for data analytics.pdf
portfolio for data analytics.pdf
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.com
 
Excel.useful fns
Excel.useful fnsExcel.useful fns
Excel.useful fns
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
 
Cis 115 Effective Communication / snaptutorial.com
Cis 115  Effective Communication / snaptutorial.comCis 115  Effective Communication / snaptutorial.com
Cis 115 Effective Communication / snaptutorial.com
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docx
 

More from sureshveloor

Consider a large Erdos-Renyi random network- Let S denote the fraction.pdf
Consider a large Erdos-Renyi random network- Let S denote the fraction.pdfConsider a large Erdos-Renyi random network- Let S denote the fraction.pdf
Consider a large Erdos-Renyi random network- Let S denote the fraction.pdfsureshveloor
 
Consider a game with two players- Alice and Bob- and the above pay off.pdf
Consider a game with two players- Alice and Bob- and the above pay off.pdfConsider a game with two players- Alice and Bob- and the above pay off.pdf
Consider a game with two players- Alice and Bob- and the above pay off.pdfsureshveloor
 
Consider a database containing information about ancient Egyptian phar (4).pdf
Consider a database containing information about ancient Egyptian phar (4).pdfConsider a database containing information about ancient Egyptian phar (4).pdf
Consider a database containing information about ancient Egyptian phar (4).pdfsureshveloor
 
Consider a database containing information about ancient Egyptian phar (1).pdf
Consider a database containing information about ancient Egyptian phar (1).pdfConsider a database containing information about ancient Egyptian phar (1).pdf
Consider a database containing information about ancient Egyptian phar (1).pdfsureshveloor
 
Consider a disease that is spreading throughout the United States- suc (1).pdf
Consider a disease that is spreading throughout the United States- suc (1).pdfConsider a disease that is spreading throughout the United States- suc (1).pdf
Consider a disease that is spreading throughout the United States- suc (1).pdfsureshveloor
 
Consider a consumer with utility x17x22- They have $100- The price of.pdf
Consider a consumer with utility x17x22- They have $100- The price of.pdfConsider a consumer with utility x17x22- They have $100- The price of.pdf
Consider a consumer with utility x17x22- They have $100- The price of.pdfsureshveloor
 
Consider a case of pneumonia- How would you differentiate among- Strep.pdf
Consider a case of pneumonia- How would you differentiate among- Strep.pdfConsider a case of pneumonia- How would you differentiate among- Strep.pdf
Consider a case of pneumonia- How would you differentiate among- Strep.pdfsureshveloor
 
Consider a class List that stores values in sorted ascending order bac.pdf
Consider a class List that stores values in sorted ascending order bac.pdfConsider a class List that stores values in sorted ascending order bac.pdf
Consider a class List that stores values in sorted ascending order bac.pdfsureshveloor
 
Consider a communication network that transmits data from a remote loc.pdf
Consider a communication network that transmits data from a remote loc.pdfConsider a communication network that transmits data from a remote loc.pdf
Consider a communication network that transmits data from a remote loc.pdfsureshveloor
 
Consider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdf
Consider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdfConsider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdf
Consider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdfsureshveloor
 
Connecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdf
Connecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdfConnecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdf
Connecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdfsureshveloor
 
Cononado Company reported a net loss of 56500 for the year ended Decem.pdf
Cononado Company reported a net loss of 56500 for the year ended Decem.pdfCononado Company reported a net loss of 56500 for the year ended Decem.pdf
Cononado Company reported a net loss of 56500 for the year ended Decem.pdfsureshveloor
 
Congress has a general implled power to make all faws necessary for ca.pdf
Congress has a general implled power to make all faws necessary for ca.pdfCongress has a general implled power to make all faws necessary for ca.pdf
Congress has a general implled power to make all faws necessary for ca.pdfsureshveloor
 
Congress passed a law that permitted government agents to search indiv.pdf
Congress passed a law that permitted government agents to search indiv.pdfCongress passed a law that permitted government agents to search indiv.pdf
Congress passed a law that permitted government agents to search indiv.pdfsureshveloor
 
Conglomerate Integration Multiple Choice reduces the transaction costs.pdf
Conglomerate Integration Multiple Choice reduces the transaction costs.pdfConglomerate Integration Multiple Choice reduces the transaction costs.pdf
Conglomerate Integration Multiple Choice reduces the transaction costs.pdfsureshveloor
 
Confronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdf
Confronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdfConfronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdf
Confronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdfsureshveloor
 
Confidentiality is not an absolute obligation- What are the exceptions.pdf
Confidentiality is not an absolute obligation- What are the exceptions.pdfConfidentiality is not an absolute obligation- What are the exceptions.pdf
Confidentiality is not an absolute obligation- What are the exceptions.pdfsureshveloor
 
Conduct an interview with an appropriate representative selected in pe.pdf
Conduct an interview with an appropriate representative selected in pe.pdfConduct an interview with an appropriate representative selected in pe.pdf
Conduct an interview with an appropriate representative selected in pe.pdfsureshveloor
 
Confidence Intervals Worksheet Show all steps in the process of solvin.pdf
Confidence Intervals Worksheet Show all steps in the process of solvin.pdfConfidence Intervals Worksheet Show all steps in the process of solvin.pdf
Confidence Intervals Worksheet Show all steps in the process of solvin.pdfsureshveloor
 
Conditional Probability Question 1- In a Baseball series- teams A and.pdf
Conditional Probability Question 1- In a Baseball series- teams A and.pdfConditional Probability Question 1- In a Baseball series- teams A and.pdf
Conditional Probability Question 1- In a Baseball series- teams A and.pdfsureshveloor
 

More from sureshveloor (20)

Consider a large Erdos-Renyi random network- Let S denote the fraction.pdf
Consider a large Erdos-Renyi random network- Let S denote the fraction.pdfConsider a large Erdos-Renyi random network- Let S denote the fraction.pdf
Consider a large Erdos-Renyi random network- Let S denote the fraction.pdf
 
Consider a game with two players- Alice and Bob- and the above pay off.pdf
Consider a game with two players- Alice and Bob- and the above pay off.pdfConsider a game with two players- Alice and Bob- and the above pay off.pdf
Consider a game with two players- Alice and Bob- and the above pay off.pdf
 
Consider a database containing information about ancient Egyptian phar (4).pdf
Consider a database containing information about ancient Egyptian phar (4).pdfConsider a database containing information about ancient Egyptian phar (4).pdf
Consider a database containing information about ancient Egyptian phar (4).pdf
 
Consider a database containing information about ancient Egyptian phar (1).pdf
Consider a database containing information about ancient Egyptian phar (1).pdfConsider a database containing information about ancient Egyptian phar (1).pdf
Consider a database containing information about ancient Egyptian phar (1).pdf
 
Consider a disease that is spreading throughout the United States- suc (1).pdf
Consider a disease that is spreading throughout the United States- suc (1).pdfConsider a disease that is spreading throughout the United States- suc (1).pdf
Consider a disease that is spreading throughout the United States- suc (1).pdf
 
Consider a consumer with utility x17x22- They have $100- The price of.pdf
Consider a consumer with utility x17x22- They have $100- The price of.pdfConsider a consumer with utility x17x22- They have $100- The price of.pdf
Consider a consumer with utility x17x22- They have $100- The price of.pdf
 
Consider a case of pneumonia- How would you differentiate among- Strep.pdf
Consider a case of pneumonia- How would you differentiate among- Strep.pdfConsider a case of pneumonia- How would you differentiate among- Strep.pdf
Consider a case of pneumonia- How would you differentiate among- Strep.pdf
 
Consider a class List that stores values in sorted ascending order bac.pdf
Consider a class List that stores values in sorted ascending order bac.pdfConsider a class List that stores values in sorted ascending order bac.pdf
Consider a class List that stores values in sorted ascending order bac.pdf
 
Consider a communication network that transmits data from a remote loc.pdf
Consider a communication network that transmits data from a remote loc.pdfConsider a communication network that transmits data from a remote loc.pdf
Consider a communication network that transmits data from a remote loc.pdf
 
Consider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdf
Consider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdfConsider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdf
Consider a binomial random variable x with n - 20 and p - 0-4- Use Tab.pdf
 
Connecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdf
Connecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdfConnecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdf
Connecting the Concepts- Four Classes of Organic MoleculesArrow A is i.pdf
 
Cononado Company reported a net loss of 56500 for the year ended Decem.pdf
Cononado Company reported a net loss of 56500 for the year ended Decem.pdfCononado Company reported a net loss of 56500 for the year ended Decem.pdf
Cononado Company reported a net loss of 56500 for the year ended Decem.pdf
 
Congress has a general implled power to make all faws necessary for ca.pdf
Congress has a general implled power to make all faws necessary for ca.pdfCongress has a general implled power to make all faws necessary for ca.pdf
Congress has a general implled power to make all faws necessary for ca.pdf
 
Congress passed a law that permitted government agents to search indiv.pdf
Congress passed a law that permitted government agents to search indiv.pdfCongress passed a law that permitted government agents to search indiv.pdf
Congress passed a law that permitted government agents to search indiv.pdf
 
Conglomerate Integration Multiple Choice reduces the transaction costs.pdf
Conglomerate Integration Multiple Choice reduces the transaction costs.pdfConglomerate Integration Multiple Choice reduces the transaction costs.pdf
Conglomerate Integration Multiple Choice reduces the transaction costs.pdf
 
Confronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdf
Confronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdfConfronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdf
Confronting Reality- Doing What Matters to Get Thiegs Right By Lawrenc.pdf
 
Confidentiality is not an absolute obligation- What are the exceptions.pdf
Confidentiality is not an absolute obligation- What are the exceptions.pdfConfidentiality is not an absolute obligation- What are the exceptions.pdf
Confidentiality is not an absolute obligation- What are the exceptions.pdf
 
Conduct an interview with an appropriate representative selected in pe.pdf
Conduct an interview with an appropriate representative selected in pe.pdfConduct an interview with an appropriate representative selected in pe.pdf
Conduct an interview with an appropriate representative selected in pe.pdf
 
Confidence Intervals Worksheet Show all steps in the process of solvin.pdf
Confidence Intervals Worksheet Show all steps in the process of solvin.pdfConfidence Intervals Worksheet Show all steps in the process of solvin.pdf
Confidence Intervals Worksheet Show all steps in the process of solvin.pdf
 
Conditional Probability Question 1- In a Baseball series- teams A and.pdf
Conditional Probability Question 1- In a Baseball series- teams A and.pdfConditional Probability Question 1- In a Baseball series- teams A and.pdf
Conditional Probability Question 1- In a Baseball series- teams A and.pdf
 

Recently uploaded

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 

Recently uploaded (20)

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 

Payments by time of day from dvdrental database

  • 1. Connect to the dvdrental database. Answer both part 1 and 2 of this question. Write a query that returns 6 columns from the payment table. Column 1: Total payment amount (sum) made during morning hours (hour < 12 ) labled as am_sum Column 2: Total count of payments made during morning hours (hour < 12 ) labled as am_count Column 3: total payment amount (sum) made during evening hours (hour >= 12 ) labeled as pm_sum Column 4: Total count of payments made during evening hours (hour >= 12 ) labled as pm_count Column 5: total payment amount (sum) made during all hours labeled as total_sum Column 6: Total count of payments made during all hours labled as total_count You MUST use SUM and CASE WHEN. Expected results: Hint: The amount column tells you how much each payment was for. The payment_date column is a timestamp that tells you when the payment was made. Describe what evidence is available to suggest columns 1 through 4 are being calculated correct? In other words, how do you know columns 1, 2, 3, and 4 are correct?