The following SQL works:
select
column1
from
table1
where
column1 > 10
The following doesn't:
select
abs(column1 - column2) column_diff
from
table1
where
column_diff > 10
Why? How should I fix it? All I want to say is that 'give me all the rows with the absolute value of the difference of the two columns greater than 10'. Thanks.