Skip to content
Advertisement

Delete Rows which are fetched by a select query joining several tables

I have written the following select:

What I want to do: I want to delete the rows in reminder, which are fetched by the described select.

What I tried:

Result: 00907. 00000 - "missing right parenthesis"

I wonder if i can basically delete these rows in this manner. I also tried ‘exists’ resulting in the same error.

Any suggestions? Thanks in advance!

Advertisement

Answer

Remove order by clause from your subquery and it should work:

Or better to use exists:

**Please check again whether all those joins are really necessary.

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