Hi,
I have a SQL statement that currently selects the left most word of a Description field to return a brand only.
Some products have the brand as the last word in the Description field.
How would I go about selecting the Last word? Should I be approaching this from PHP?
Here is the Left which works for the first word...
Any ideas appreciated.
Peter.
Remember- It's nice to be important,
but it's important to be nice
I have a SQL statement that currently selects the left most word of a Description field to return a brand only.
Some products have the brand as the last word in the Description field.
How would I go about selecting the Last word? Should I be approaching this from PHP?
Here is the Left which works for the first word...
Code:
SELECT Left(Description, INSTR(Description, ' ')-1 as Brand
Any ideas appreciated.
Peter.
Remember- It's nice to be important,
but it's important to be nice