I
Ivan Debono
Hi all,
I have the following query:
UPDATE plans SET plan_date = (
SELECT Min(calendar.date)
FROM calendar
WHERE (((calendar.completed_yn)=False) AND ((calendar.deleted_yn)=False) AND
((calendar.parent_table)='plans') AND ((calendar.parent_id)=64))
)
WHERE plans.id = 64
What is does is that it updates the plan_date in table plans with the
smallest date in table calendar which is not deleted and not completed.
But I get an error: Operation must use an updatable query. (Error 3073)
Anyone knows why??
Thanks,
Ivan
I have the following query:
UPDATE plans SET plan_date = (
SELECT Min(calendar.date)
FROM calendar
WHERE (((calendar.completed_yn)=False) AND ((calendar.deleted_yn)=False) AND
((calendar.parent_table)='plans') AND ((calendar.parent_id)=64))
)
WHERE plans.id = 64
What is does is that it updates the plan_date in table plans with the
smallest date in table calendar which is not deleted and not completed.
But I get an error: Operation must use an updatable query. (Error 3073)
Anyone knows why??
Thanks,
Ivan