MySQL Forums
Forum List  »  Newbie

strange query
Posted by: Alex Dantart
Date: August 25, 2004 09:01AM

Hi:

I know about Full-Text searchs, soundex, and subqueries with IN or SOME. But I want to make a query that joins two concepts.

Let's see... I got this array ("grreen", "black","yellow", "bluee", "orange") (yes, some colours are bad-written)
And I got a database with for example 200 colours well-written.
1 white
2 orange
3 blue
4 brown
5 green
6 black
7 yellow
8 pink
9 ... ect


Then i would like to make a query that select from the database the rows that matches the array elements and if not, the most similar ones...

I mean... the query should return 5,6,7 and 3 (that are the 4 colours or similar "soundex" ones that matches the elements of the array).

How can i do this ?

THANK YOU

Options: ReplyQuote


Subject
Written By
Posted
strange query
August 25, 2004 09:01AM
August 26, 2004 04:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.