Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Identify the customer who incurred the highest daily total order cost between February 1 , 2 0 1 9 , and May 1 , 2

Identify the customer who incurred the highest daily total order cost between February 1,2019, and May 1,2019. If a customer had multiple orders on a given day, sum the order costs for that day. Output the customer's first name, the total cost of their items, and the corresponding date. Assume that each customer's first name in the dataset is unique.
Tables Schema as Below:
customers
columnName dataType
id INT
first_name VARCHAR(255)
last_name VARCHAR(255)
city VARCHAR(255)
address VARCHAR(255)
phone_number VARCHAR(15)
orders
columnName dataType
id INT
cust_id INT
order_date DATE
order_details VARCHAR(255)
total_order_cost INT
Date is in the format "yyyy-mm-dd".

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

You have

Answered: 1 week ago