Is it possible to do the following in mysql with a single where clause?
WHERE
employer IS NULL
OR employer REGEXP 'employed|indepdendent|self|freelanc'
That is, move the NULL into the regexp?
As suggested in the comment by @Wiktor, the simplest way to do this would be to coerce the field to a string so that the regex can work against a non-null string value.
For example:
WHERE
COALESCE(employer, 'NULL') REGEXP 'employed|indepdendent|self|null|freelanc'
where clause, but I disagree with the premise that doing this is a good thing. I've had data that included the literal "NULL" string, so to me this technique would have masked that problem. Additionally, the regex you've chosen can over-match when any substring of employer contains 'self' or 'null'. If you are certain that it will never happen, that's fine ... but it never happens until it does. (Somebody specializing in "jury nullification", perhaps?)
'NULL'string of course.NULLusing RegExp (which, as @WiktorStribiżew points out, generally wouldn't work without coercing it to a string value)?null, sometimes empty string, sometimes some values that "mean null", etc.