Welcome Guest, Not a member yet? Register   Sign In
SQL Order By, excluding 'the'
#1

[eluser]bradya[/eluser]
Hi Guys,

I know this isn't a CI specific question, but though you might have some ideas on it. I am fetching a list of bands from a mysql table, and ordering by band name. Problem being that any band beginning with 'the' eg. 'The Sleepy Jackson' is automatically put as a 'T' rather than 'S'.

So, does anyone know of a way to order sql results, but to exclude words like 'the', kind of like stopwords in a full-text search I guess...


Messages In This Thread
SQL Order By, excluding 'the' - by El Forum - 07-17-2008, 08:37 AM
SQL Order By, excluding 'the' - by El Forum - 07-17-2008, 08:45 AM
SQL Order By, excluding 'the' - by El Forum - 07-17-2008, 08:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB