I am running PSQL v8.6 and I am trying to update values in one database based on the results of a SQL statement. My SQL is shown below but when I try to run it I get an "syntax error" message (indicates the error is between the last two parenthesis).
Can someone please help me on this one?
update item set webxmitflag='Y', webitemflag='Y' where (SELECT eventln.itemnum,webitemflag FROM "EVENTLN","item" where eventmode='R' and item.itemnum=eventln.itemnum
and (webitemflag<>'Y' and webitemflag<>'I'))
Can someone please help me on this one?
update item set webxmitflag='Y', webitemflag='Y' where (SELECT eventln.itemnum,webitemflag FROM "EVENTLN","item" where eventmode='R' and item.itemnum=eventln.itemnum
and (webitemflag<>'Y' and webitemflag<>'I'))