Oracle: There is a "CUSTOMER" table and "EXCEPTION_KEYWORDS" table. I want to select the customers where the name contains any keyword from the Exception_keywords table.
I tried using a sub query inside Regexp_Like but getting error:
ORA-01427: single-row subquery returns more than one row 01427. 00000 - "single-row subquery returns more than one row"
My query:
SELECT * FROM CUSTOMER
WHERE REGEXP_LIKE (STD_NAME,(Select KEYWORD from EXCEPTION_KEYWORDS),'i');
Note: I need solution only using Regexp.