Is it possible in sql / sqlite3 to make a choice where the column does not exist but is the computed result of the other columns?
eg. Given a table with max and current columns, I would like to make a selection based on the difference between them, so if I had:
table_data:
max|current
10|3
12|8
select ???? from table_data order by ????? asc;
desired result:
4
7
sqlite3 grammar here http://www.sqlite.org/lang_expr.html , but I can not understand it
source
share