I have 2 columns both generated by means of 2 different functions, as there is a lot of data the query takes 190 seconds.
Example of what I do not want to do:
- I want to subtract the result of both columns but I do not want it to take another 190 seconds because I have to take over the functions again.
Is it possible to do the subtraction more quickly?
Example of what I want to avoid:
Select
Funcion1(parametros) Columna1,
Funcion2(parametros) Columna2,
Funcion1(parametros)-Funcion2(parametros) Columna3
From
Tabla