I'm looking to find all occurrences of "Dr. Jones
" in a name field using regexp_like. I can do the OR (all names with DR or JONES in it) but I need both names to be present in the field.
Is there a simple way to do this with regexp_like without using multiple statements?
I'm looking for a shortcut way. The answer below gives it in an easy situation. I know I can have:
where regexp_like(color_code,'red|blue|green','i');
and it will give me any record of color_code with either of those three names in it. What I'm looking for is something like:
where regexp_like(color_code,'red&blue&green','i');
that would only select records with ALL THREE colors in the name but they can be in any order so: red blue green, green purple blue black red, yellow red orange green blue
would all make the list