blob: 1a182f05271050f2bcfea68e862879365bfb629d [file] [log] [blame]
select customer.education as c0, store.store_country as c1, store.store_state as c2, store.store_city as c3, store.store_name as c4, store.store_type as c5, store.store_manager as c6, store.store_sqft as c7, store.grocery_sqft as c8, store.frozen_sqft as c9, store.meat_sqft as c10, store.coffee_bar as c11, store.store_street_address as c12 from customer as customer, sales_fact_1997 as sales_fact_1997, store as store where sales_fact_1997.customer_id = customer.customer_id and sales_fact_1997.store_id = store.store_id and (store.store_name in ('Store 6', 'Store 2')) group by customer.education, store.store_country, store.store_state, store.store_city, store.store_name, store.store_type, store.store_manager, store.store_sqft, store.grocery_sqft, store.frozen_sqft, store.meat_sqft, store.coffee_bar, store.store_street_address order by customer.education ASC NULLS LAST, store.store_country ASC NULLS LAST, store.store_state ASC NULLS LAST, store.store_city ASC NULLS LAST, store.store_name ASC NULLS LAST;