In SQL Server
you can write nested SQL as follows:
SELECT T.con FROM (SELECT count(*) as "con" FROM EMP) AS T
That way, I can get a temporary table T, which can be nested in another query.
But I can not do the same in oracle SQL
He gives me ORA-01747:invalid column
SELECT * FROM (SELECT count(*) as "con" FROM EMP) T
select * works, but thatβs not what I want. Does anyone know how to do this?
Mildc source share