vložit první výpočet do odvozené tabulky:
select variable1
, complex_function(variable1, other_column) as variable2
, yet_another column
from (select complex_operation as variable1
, other_column
, yet_another_column
from whatever) dt