fletchsod
Programmer
- Dec 16, 2002
- 181
It had gotten more complicated than I thought it on writing a sql-query script.
I have a "manufacturer's make" table that need to match against the "dealership's company name" table to get a matching hit.
Let's say I have "dealership's company name" table, example below.
--snip--
Dealership-Name
------------------------
George Moore Chevrolet
Wheel City Motor
Desert Buick GMC
--snip--
When it is search against the make, I would like to get this result, example below.
--snip--
Dealership-Name | Make
---------------------------------------
George Moore Chevrolet | Chevrolet
Desert Buick GMC | Buick
Desert Buick GMC | GMC
--snip--
I figure I can use the space to seperate the words (dealership-name) for matching against the make but I don't see how.
Can anyone show me how it can be done? Sample sql-query??
Thanks...
I have a "manufacturer's make" table that need to match against the "dealership's company name" table to get a matching hit.
Let's say I have "dealership's company name" table, example below.
--snip--
Dealership-Name
------------------------
George Moore Chevrolet
Wheel City Motor
Desert Buick GMC
--snip--
When it is search against the make, I would like to get this result, example below.
--snip--
Dealership-Name | Make
---------------------------------------
George Moore Chevrolet | Chevrolet
Desert Buick GMC | Buick
Desert Buick GMC | GMC
--snip--
I figure I can use the space to seperate the words (dealership-name) for matching against the make but I don't see how.
Can anyone show me how it can be done? Sample sql-query??
Thanks...