Skip to content
Advertisement

SQL command not properly ended on Live SQL with Subqueries

I get an error

ORA-00933: SQL command not properly ended

when I try to run:

However, the subquery

can be run without a problem.

I am not sure where I did wrong.

I found that doing the query without a alias works. Why is that?

Advertisement

Answer

You have to remove the “AS” before TEMP. Because “AS” cannot come after “FROM” keyword.

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