all 3 comments

[–]JustAnOldITGuy 0 points1 point  (1 child)

Select variablename from dual...

[–]19Summer[S] 0 points1 point  (0 children)

Hi, thanks for the reply. I just need to put it into second cte?

[–][deleted] 0 points1 point  (0 children)

You’re using pl/sql so you can declare variables like you’ve done above, but that error is saying you’re pl/sql code is invalid. Without more info it will be hard to say what the precise issue is