callnishant
ISP
Hi,
I am trying to make a join between two tables but finding it tough.
Tables are like:
FIPS Table:
-------------
State CountyCode
PA 12345
MI 77777
RULES Table:
--------------
State CountyCode
PA 88888
PA 00000
Now, when I try to make a join between the Rules and Fips table on columns State and CountyCode, since there is no countycode of 12345 in Rules table for the State PA, it doesn't make a match. In this situation, I would like it to join automatically using the CountyCode value of 00000, (Which is the code for -"Rest of the Counties") as seen in the Rules Table.
Could someone please help me with this?
Thanks in advance!
Nishant
I am trying to make a join between two tables but finding it tough.
Tables are like:
FIPS Table:
-------------
State CountyCode
PA 12345
MI 77777
RULES Table:
--------------
State CountyCode
PA 88888
PA 00000
Now, when I try to make a join between the Rules and Fips table on columns State and CountyCode, since there is no countycode of 12345 in Rules table for the State PA, it doesn't make a match. In this situation, I would like it to join automatically using the CountyCode value of 00000, (Which is the code for -"Rest of the Counties") as seen in the Rules Table.
Could someone please help me with this?
Thanks in advance!
Nishant