MySQL Forums
Forum List  »  Newbie

Re: Query result - not to be sorted asc or desc
Posted by: Klaus Posenauer
Date: July 25, 2005 08:06AM

The problem is that the various locations can be in a different order the next time around. I'm using this database as a repository for tourcommentaries for those various locations and need them sorted according to the tourroute.

So the query would have to be something like

SELECT l.notes FROM locations l
WHERE l.location = d or l.location = a or l.location = c or l.location = b
ORDER BY (something that expresses - above locations in reverse order)

Options: ReplyQuote


Subject
Written By
Posted
Re: Query result - not to be sorted asc or desc
July 25, 2005 08:06AM


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.