2011-11-24 66 views

回答

1
SELECT * FROM MyTable ORDER BY (ColumnA - ColumnB) 
+0

但問題要求'同一列的兩個值' –

+0

我希望這會幫助你,http://stackoverflow.com/questions/634568/how-to-get-difference-between-two-rows-for-一列場 – Nagarajan