cancel
Showing results for 
Search instead for 
Did you mean: 

Create an alias for the @DerivedTable function

first_last
Participant
0 Kudos

Is it possible to create an alias for the @DerivedTable function when it is being referenced in another derived table?

DT_FOO:

SELECT  *
FROM    schema.table_foo

DT_BAR:

SELECT  foo.*
FROM    @DerivedTable(DT_FOO) AS foo

Generates a missing right parentheses error when used in Oracle.

Accepted Solutions (0)

Answers (1)

Answers (1)

first_last
Participant
0 Kudos

One solution:

SELECT  foo.*
FROM  ( SELECT * FROM @DerivedTable(DT_FOO) ) AS foo