blob: 295bd639209aa870a391f68db74cf386ce92fd49 [file] [log] [blame]
select store.store_country as c0, region.sales_region as c1, region_1.sales_region as c2, sum(sales_fact_1997.unit_sales) as m0 from store as store, sales_fact_1997 as sales_fact_1997, region as region, region as region_1, customer as customer where sales_fact_1997.store_id = store.store_id and store.store_country = 'USA' and store.region_id = region.region_id and region.sales_region = 'South West' and sales_fact_1997.customer_id = customer.customer_id and customer.customer_region_id = region_1.region_id and region_1.sales_region = 'South West' group by store.store_country, region.sales_region, region_1.sales_region;