I have three scripts, two of which are joined to create a summary table.
The 1st script:
2nd script:
This is the table result that I would like:
Any ideas on how to combine the 1st two scripts to get the output of the 3rd script.
Thanks,
Todd
The 1st script:
Code:
create table hmda_hud_fha_limit_04_1 as (select tract_id, count(objectid) total
from HMDA_HUD_FHA_LIMIT_04
where ln_type = '1' and
proptype = '1' and
purpose = '1' and
own_occ = '1' and
action = '1' and
lien_flg = '1'
group by tract_id);
2nd script:
Code:
create table hmda_hud_fha_limit_04_2 as (select tract_id, count(objectid) high_cost
from HMDA_HUD_FHA_LIMIT_04
where ln_type = '1' and
proptype = '1' and
purpose = '1' and
own_occ = '1' and
action = '1' and
lien_flg = '1' and
rate_spr > 2.99
group by tract_id);
This is the table result that I would like:
Code:
create table hmda_tractsum_04 as (select A.tract_id, A.total, B.high_cost
from HMDA_HUD_FHA_LIMIT_04_1 A,
HMDA_HUD_FHA_LIMIT_04_2 B
where A.tract_id = B.tract_id(+));
Any ideas on how to combine the 1st two scripts to get the output of the 3rd script.
Thanks,
Todd