blob: 5b6a144dec02b3cf862a7a0491369ee076d98698 [file] [log] [blame]
select promotion.promotion_name as c0 from promotion as promotion, sales_fact_1997 as sales_fact_1997, time_by_day as time_by_day, product_class as product_class, product as product where sales_fact_1997.promotion_id = promotion.promotion_id and sales_fact_1997.time_id = time_by_day.time_id and time_by_day.the_year = 1997 and time_by_day.quarter in ('Q1', 'Q2') and sales_fact_1997.product_id = product.product_id and product.product_class_id = product_class.product_class_id and product_class.product_family = 'Drink' and (promotion.promotion_name in ('Bag Stuffers', 'Best Savings', 'Big Promo', 'Big Time Discounts', 'Big Time Savings', 'Bye Bye Baby')) group by promotion.promotion_name order by promotion.promotion_name ASC NULLS LAST;