SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler 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?

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 

Último (20)

week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.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?