Table: FirstNames
NAME
Tom
Joe
Peter
Table: FullNames
FULL_NAME:
Tom Petty.
Joe Satriani.
Peter Griffin.
Sarah Connor.
I would like to run a query:
select *
from FullNames where FULL_NAME like '%' || (select NAME from FirstNames) || '%'
It yields:
ORA-01427: single-row subquery returns more than one row
which seems correct. Is there a way to do that in Oracle?