Hi guys, I hope you can help me, I have tried to get the variance of a "users" table. The field "Age" is not as such, I calculate the age of each user in the following way:
select trunc(months_between(sysdate,FechaNac)/12) edad
from usuarios
Now I'm trying to pass that as an argument to the STDDEV function from sql in oracle:
select STDDEV(edad),(select trunc(months_between(sysdate,FechaNac)/12) edad
from usuarios)
from usuarios
but I get the following error:
SQL state 42000: ORA-00904: "EDAD": invalid identifier
What could it be? greetings