Equations in ORDER BY statements
Is this possible ? And would it slow down the server with a query on a table with around 10,000 entries ?
My query is currently
SELECT title, number1, number2 ORDER BY number1
i would like to do something like this
SELECT title, number1, number2 ORDER BY (number1 + (number2 *100))
Not to ask a really really silly question, but...
WHY did you not simply TRY it? Would have taken much less time than waiting here for an answer.
Yes, you can do that.
With only 10,000 records in the table, I wouldn't expect to see any serious performance hit. Probably not even a noticeable one.
|All times are GMT +1. The time now is 11:42 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.