Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

multiple with clause in oracle reports giving error

User775094-OracleNov 18 2016 — edited Nov 24 2016

I have multiple with clause in my Oracle Report query. I am using each with clause in different UNIONS. It is working fine when running in database directly. However giving invalid table error in Oracle Report Builder. Below is the example:

with Q1 AS

(SELECT X FROM TABLE1),

Q2 AS

(SELECT Y FROM TABLE2)

SELECT X FROM TABLE1

UNION ALL

SELECT Y FROM TABLE2

Basically I am using one with clause in one query and another in second query.

Error is: table or view does not exist (Select Y FROM ==>TABLE2)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2016
Added on Nov 18 2016
6 comments
541 views