Я не могу найти любые примеры, которые работают с этими данными.
PULL DOWN 1
Код: Выделить всё
select distinct state from data20251;
Код: Выделить всё
select distinct county from data20251 where state = 'xx';
Код: Выделить всё
select distinct city from data20251 where state = 'xx' and county = 'xxxxxxxxxxx';
Код: Выделить всё
select name,street from data20251 where state = 'xx' and county = 'xxxxxxxxxxx' and city = 'xxxxxxxxxxx' and SIC = '123451';
select name,street from data20251 where state = 'xx' and county = 'xxxxxxxxxxx' and city = 'xxxxxxxxxxx' and SIC = '123452';
select name,street from data20251 where state = 'xx' and county = 'xxxxxxxxxxx' and city = 'xxxxxxxxxxx' and SIC = '123453';
select name,street from data20251 where state = 'xx' and county = 'xxxxxxxxxxx' and city = 'xxxxxxxxxxx' and SIC = '123454';
select name,street from data20251 where state = 'xx' and county = 'xxxxxxxxxxx' and city = 'xxxxxxxxxxx' and SIC = '123455';
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/793 ... l-database