Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Basic multi-level aggregation
Multi-level aggregation in groups
Multi-level aggregation with custom classification
Three or more aggregation levels
Summary
18. Question 3

Instruction

Perfect! We have one final question for you.

Exercise

We want to see if cheaper products are currently being ordered in larger quantities.

Create a report with two columns: price_category (which will contain either 'cheap' for products with a maximum unit_price of 20.0 or 'expensive' otherwise) and avg_products_on_order (the average number of units on order for a given price category).