Jack Lauman wrote:

SELECT.... ORDER BY Subscriber ASC, Name ASC;

How do I change this so that if the 'Name' field begins with "The " that the sort begins on the second word? In other words I'd like to be able to return the word "The" but have it sort on whatever the second word is.

SELECT... ORDER BY Subscriber ASC, TRIM(LEADING "The " FROM Name) ASC;

:: should work :-)

--
Hassan Schroeder ----------------------------- [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to