Geeks With Blogs
Ben Adler's Development Posting solutions as I find them

order by

(case

      when id = 5 then 1

      when id = 2 then 2

      when id = 3 then 3

      when id = 1 then 4

      when id = 4 then 5

end) asc

Posted on Monday, June 6, 2011 1:53 PM SQL | Back to top


Comments on this post: SQL Specific Order By

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © BenAdler | Powered by: GeeksWithBlogs.net | Join free