I, I want to handle this select statement as follow:
select
col1,
col2 from table
This select statement return 2 lines:
col1 col2
---- ----
BasketBall 2 points
BasketBall 3 points
Now, i want to use a simple select statement to give me one single row, like this:
col1...
I wish to execute the following SQL statement:
select
round(col1 * 2) result_col1,
(result_col1 - 2) col2
from table_test
The result is: >Invalid column name
I don't want to use an another view or any object else...
I just want to reuse a column alias...
Thanks a lot for your help.... It's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.