on 04-11-2018 5:58 PM
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.
One solution:
SELECT foo.*
FROM ( SELECT * FROM @DerivedTable(DT_FOO) ) AS foo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.