create table TaxAreaAuthority(
taxAuthority varchar2(7),
taxArea varchar2(5),
primary key(taxAuthority,taxArea));
insert into TaxAreaAuthority values('city1','city1');
insert into TaxAreaAuthority values('city2','city2');
insert into TaxAreaAuthority values('city3','city3');
insert into TaxAreaAuthority values('county1','city1');
insert into TaxAreaAuthority values('county1','city2');
insert into TaxAreaAuthority values('county2','city3');
insert into TaxAreaAuthority values('state1','city1');
insert into TaxAreaAuthority values('state1','city2');
insert into TaxAreaAuthority values('state1','city3');
create table TaxRates(
taxAuthority varchar2(7),
dteffective date,
authTaxRate number(2,1),
primary key(taxAuthority,dteffective));
insert into TaxRates values('city1' ,to_date('1993/01/01','yyyy/mm//dd'),1.0);
insert into TaxRates values('city1' ,to_date('1994/01/01','yyyy/mm//dd'),1.5);
insert into TaxRates values('city2' ,to_date('1993/09/01','yyyy/mm//dd'),1.5);
insert into TaxRates values('city2' ,to_date('1994/01/01','yyyy/mm//dd'),2.0);
insert into TaxRates values('city2' ,to_date('1995/01/01','yyyy/mm//dd'),2.5);
insert into TaxRates values('city3' ,to_date('1993/01/01','yyyy/mm//dd'),1.7);
insert into TaxRates values('city3' ,to_date('1993/07/01','yyyy/mm//dd'),1.9);
insert into TaxRates values('county1',to_date('1993/01/01','yyyy/mm//dd'),2.3);
insert into TaxRates values('county1',to_date('1994/10/01','yyyy/mm//dd'),2.5);
insert into TaxRates values('county1',to_date('1995/01/01','yyyy/mm//dd'),2.7);
insert into TaxRates values('county2',to_date('1993/01/01','yyyy/mm//dd'),2.4);
insert into TaxRates values('county2',to_date('1994/01/01','yyyy/mm//dd'),2.7);
insert into TaxRates values('county2',to_date('1995/01/01','yyyy/mm//dd'),2.8);
insert into TaxRates values('state1' ,to_date('1993/01/01','yyyy/mm//dd'),0.5);
insert into TaxRates values('state1' ,to_date('1994/01/01','yyyy/mm//dd'),0.8);
insert into TaxRates values('state1' ,to_date('1994/07/01','yyyy/mm//dd'),0.9);
insert into TaxRates values('state1' ,to_date('1994/10/01','yyyy/mm//dd'),1.1);
commit;