View Full Version : Equations in ORDER BY statements

04-20-2013, 02:16 PM
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))

Old Pedant
04-21-2013, 03:29 AM
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.