How are county relationships determined in the US Zip Codes Database?

The county_fips field is based on the county with the largest overlap with the zip code by area. When there are multiple overlaps you'll find county_fips_all and county_weights to be useful. Counties are listed in descending order (greatest overlap first).