Get startedGet started for free

Writing a ROLLUP Query

Harbr's operations team wants a single summary of shipment outcomes across all regions — how many shipments were ON_TIME, DELAYED, or FAILED - with regional subtotals and a company-wide grand total in one result set. Rather than running separate queries per region, you'll use ROLLUP on logistics.shipments to produce the full breakdown in a single pass. Your task is to build that query and identify the total number of FAILED shipments recorded across all regions.

This exercise is part of the course

Data Pipeline Automation in Snowflake

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise