Thats ColdFusion, no PL/SQL, but I guess it's about the SQL-query
I created a search for a project but did it this way:
<CFIF IsDefined("[searchButtonPressed]") IS TRUE>
<CFQUERY NAME="[name]" DATASOURCE="[database]">
SELECT DISTINCT t1.[field you want to select]
FROM [table 1] t1, [table 2] t2
WHERE t1.[column] = t2.[column]
AND t1.[column] LIKE '%#Form.[what you're searching for]#%';
</CFQUERY>
<CFOUTPUT QUERY="[name]">
#[field you selected]#
</CFOUTPUT>
</CFIF>
Hope it works.