blob: deb450c3de455e7d2a2a72694cfd6ca47fb9e887 [file] [log] [blame]
select store.store_country as c0, store.store_state as c1 from store as store, inventory_fact_1997 as inventory_fact_1997, warehouse as warehouse where inventory_fact_1997.store_id = store.store_id and inventory_fact_1997.warehouse_id = warehouse.warehouse_id and warehouse.warehouse_country = 'USA' group by store.store_country, store.store_state order by store.store_country ASC NULLS LAST, store.store_state ASC NULLS LAST;