Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

1.)Warming up with aggregate functions: return the total price of all items in the items table and how many of them there are. 2.)Return the

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

1.)Warming up with aggregate functions: return the total price of all items in the items table and how many of them there are.

2.)Return the money spent and the number of items bought per customer.

3.)Similar to the last problem, but one step deeper: return the money spent and the number of items bought per customer, per cart.

4.)How many different items did each customer buy (not quantity)? Return customer name and number of different items. Hint: A. Jones bought 2 different items.

cartitem -Table Name: cartite Schema: superma Column PK NNU cartid item id qty price INT INT SMALLINT DECIMAL(16,4) click to edit>

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_2

Step: 3

blur-text-image_3

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

Students explore these related Databases questions