Expert
Aggregations
Pro Challenge
Revenue Share Without Join Inflation
Calculate each product's share of completed invoice revenue. Invoice lines define revenue; line_tags is one-to-many descriptive data and must not multiply line revenue. Return product_id, revenue and revenue_share. Products with multiple tags must remain at invoice-line grain. Return columns: product_id, revenue, revenue_share.
Preparing the interactive SQL workspace...