I'm not sure how to explain it but I will have to query different tables depending on the users selections.
e.g.
Table1:Counties only_source1
Table2:Counties only_source2
Table3:States only_source1
Table4:States only_source2
Table5:Regions
Table6:Variables
Table7:Computed Indicators
Table8:Economic Indicators
The tables are too large to combine.
First the user selects a region - then years.
Then the user selects an Economic indicator
Depending on the economic indicator the user gets a list of choices for variables and computed indicators in which they can pick multiple selections. The variables are from different sources.
Now I'm not sure what to do next. Should it be cases
e.g.
case1: region ="state" and indicator=5 and variable=2 and computed=2 then
select from table1 1979, 1980, varcode, reg;
where varcode=2, region=state;