Forum Discussion
Claudi Magnussen
Jul 04, 2017Copper Contributor
SQL continues excecution when syntax error
Hi.. I have this statement: UPDATE Table1 SET status = 'DoSomething' WHERE status = 'Ready' AND TabId IN (SELECT TabId FROM Table2 WHERE xData IS NOT NULL) . If I run only the subselect I get a...
gyvkoff
Aug 07, 2017Brass Contributor
you need to fully qualify the query to get the error, like below. Because it's not fully qualified, it tries to auto-resolve, by referencing the outer query.
UPDATE Table1 SET status = 'DoSomething'
WHERE status = 'Ready' AND TabId IN
(SELECT t2.TabId FROM Table2 t2 WHERE xData IS NOT NULL)