TICKIT-06: Inventory Sell-Through & Event Funnel Conversion
Track: TICKIT Marketplace • Difficulty: Intermediate • Mastery Points: 150 PTS
Business Problem Scenario
Live event tickets are a perishable commodity: the moment an event begins, unsold inventory becomes valueless. Joining raw listings directly to sales records multiplies listed ticket counts across every individual sale transaction, producing false sell-through rates exceeding 100%. To produce accurate inventory conversion metrics, listings and sales must be pre-aggregated to event grain prior to joining.
Engineering Objective
Write an inventory sell-through query joining pre-aggregated listings and sales to gold.dim_event. • Expected Columns: e.eventid, e.eventname, l.listed_tickets, coalesce(s.sold_tickets, 0) AS sold_tickets, sell_through_rate • Pre-Aggregation Logic: - Subquery l: Aggregate gold.fact_listing by event_sk to get listed_tickets = sum(numtickets). - Subquery s: Aggregate gold.fact_sales by event_sk to get sold_tickets = sum(qtysold). - Join to gold.dim_event e on event_sk. - sell_through_rate = round(coalesce(s.sold_tickets, 0) * 100.0 / l.listed_tickets, 2) - Order by sell_through_rate DESC. Key Concepts: - Grain Alignment: Pre-aggregating disparate fact tables to a common grain before joining to eliminate Cartesian multiplication.
Target Table: gold.fact_listing l, gold.fact_sales s, gold.dim_event e (event_sk BIGINT, eventid INT, eventname STRING)
Verification & Architecture Insights
Accurate sell-through analytics allow event organizers to adjust dynamic ticket pricing days before showtime to clear expiring inventory.