Skip to content
Advertisement

ORACLE ALIAS in WHERE Clause Subquery

Here is my SQL code.

I used subquery and labeled it, but when I call column from that subquery, it shows that as invalid identifier.

error as per below

Please help me to sort out this issue. I need to call subquery’s columns also in my final SQL view.

Advertisement

Answer

You can only use colums that are in your FROM clause. So, your query should be something like:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement