Skip to content
Advertisement

ORA-00907: Missing Right Parenthesis on a left join of two subqueries

It’s been a little while since I’ve messed with SQL and I’m picking it back up for a course. I need to create a table of table name, column name, constraint name, and constraint type for all tables with my user, but every time I try, I’m getting a missing right parenthesis error. Here’s my code so far:

SQL Developer says it’s at the “AS a” in line 4 but I’m not finding much information scouring the web. Any help is much appreciated!

Advertisement

Answer

If you remove AS it works:

but I suppose this query might be shorter and without left join, because it’s always matches:

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