| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> SQL - Amount of hits with a LIKE
Hi all,
I am writting a query that searches through a table using a couple of
"likes".
I want something like the following
But you can't have a "like" and an "In" together. I'm guessing I can use OR here, but since there might be N amount of words OR'd together, it is going to be a little tricky.
My main problem is however, how do I order them, so that words that are matched more than once are higher up.
Eg. Like '%ex%' or Like '%le%'
I would like ExtraSimple to be placed first, since it was matched with both '%ex%' and '%le%'
Any ideas?
Thanks,
Aisha
Received on Wed Jun 19 2002 - 19:44:06 CDT
![]() |
![]() |