That works for the second half of the problem, but first I want to get the BuildingCodeID for a specific house. Right now I could do that in two separate queries.
SELECT BuildingCodeID from Table1 t1, Table2 ts WHERE t1.relHouseID = "432" and t1.relCountyID = t2.CountyID
Then use mysql_fetch_array() to get the value then parse it back into this query.
SELECT relHouseID, BuildingCodeID from Table1 t1, Table2 t2 WHERE t1.relCountyID = t2.CountyID and t2.BuildingCodeID = "45690"
I would prefer to have this in one query. Can anybody help?