The
APPLY
SQL syntax, whether itCROSS APPLY
orOUTER APPLY
was introduced inOracle 12c version. Prior versions of Oracle RDBMS do not support
APPLY
SQL syntax.- When selecting from table function you need to use
TABLE()
function:
Having said that, you could rewrite your query as follows:
For 12c using cross apply
.
select *
from its_account aac
cross apply TABLE(fnGetAccountIdentifier(aac.account_key)) ;
For 9i and up using cross join
.
select *
from its_account aac
cross join TABLE(fnGetAccountIdentifier(aac.account_key)) ;
In your case there is no difference - you will get the same result using cross join
as you would using cross apply
.