Hi, I am issuing an UPDATE Statement on a Sybase table but I am getting the below error:
Msg 325, Level 18, State 4: Server 'dev', Line 1: Adaptive Server finds no legal query plan for this statement. If an Abstract Plan is forcing the query plan, check its correspondence to the query. If not, please contact Sybase Technical Support.
Here is my UPDATE Statement.
Update TABLE1 SET SAMPLECOL = (
Select
TABLE2.SAMPLECOL
from TABLE2
where
TABLE2.COMMON_ID = TABLE1.COMMON_ID
)
where
TABLE1.TABLE1_ID in (
Select
TABLE1.TABLE1_ID
from TABLE1
inner join TABLE2
on TABLE1.COMMON_ID = TABLE2.COMMON_ID
where TABLE1.SAMPLECOL = ''
)
Any insights will be greatly appreciated.