Ok I have two tables. First table is fmp_leads. Second table is sic_codes
fmp_leads has a bunch of lead data, including a column called sic_code
sic_codes has 3 columns (id, sic_code, good_bad)
I want to run this:
SELECT *
FROM fmp_leads
WHERE (
fmp_leads.sic_code MATCHES sic_codes.sic_code
AND sic_codes.good_bad = good
)
I realize that statement above isn't real, I'm just not sure how to perform the WHERE statement.