Good day,
I'm trying to do a simple nested select statement in a procedure but keep getting errors. In the code below I delete from a table where its VERSIONID falls within a range returned by a select-from-where statement. The code as it is below returns the error: "feature not supported: subqueries are not supported in where condition".
DELETE FROM "EPM_PCM"."IQ_PP_ACTIVITYDRIVERVALUE"
WHERE "EPM_PCM"."IQ_PP_ACTIVITYDRIVERVALUE"."VERSIONID" IN (
SELECT "VERSIONID" FROM "EPM_PCM"."SDA_PP_ACTIVITYDRIVERVALUE"
WHERE "PERIOD_NAME" = "MARCH_YTD")
Replacing the SELECT statement in the IN clause with the values I'm expecting from the SELECT produces the correct result. I've tried table variables but that also returns an error.
Any ideas would be appreciated