S
Smallville_Kent
I have table "closures" that I am trying to run a delete query against. I am
trying to use a pass-through query (connected to Oracle) as a dynamic filter
so I am only deleting pertinent records. I get "Could not delete from
specified tables" error. I have read through similar questions and cannot
seem to get this to work even with a sub-query.
This is my original:
DELETE closures.*
FROM 00monthly_run_range INNER JOIN closures ON [00monthly_run_range].YYYYMM
= closures.yyyymm_cls;
This is my attempt using a sub-query:
DELETE FROM closures.*
WHERE EXISTS
(SELECT yyyymm FROM 00monthly_run_range
WHERE 00monthly_run_range.yyyymm = closures.yyyymm_cls);
The sub-query gives the following error: "Syntax error in query. Incomplete
query clause."
I have been stuck on this all day and have not been able to resolve. Thanks!
trying to use a pass-through query (connected to Oracle) as a dynamic filter
so I am only deleting pertinent records. I get "Could not delete from
specified tables" error. I have read through similar questions and cannot
seem to get this to work even with a sub-query.
This is my original:
DELETE closures.*
FROM 00monthly_run_range INNER JOIN closures ON [00monthly_run_range].YYYYMM
= closures.yyyymm_cls;
This is my attempt using a sub-query:
DELETE FROM closures.*
WHERE EXISTS
(SELECT yyyymm FROM 00monthly_run_range
WHERE 00monthly_run_range.yyyymm = closures.yyyymm_cls);
The sub-query gives the following error: "Syntax error in query. Incomplete
query clause."
I have been stuck on this all day and have not been able to resolve. Thanks!