Hi,
Im have made the following statement for sql server :
update a set rescode=’OUTDATED’, completedate=getdate(), createuser=’INSTALL’ from [codafinprod].[dbo].oas_diary a where a.cmpcode=’101′ and RIGHT(a.actioncode,1) in (’1′, ‘2′, ‘3′, ‘4′) and a.completedate is NULL and a.cmpcode NOT IN
(select cmpcode from [codafinprod].[dbo].oas_docline b where
a.cmpcode=b.cmpcode and
a.elmcode=b.el2 and
b.statpay=84 and
b.el1=’400000′ and
(b.lettersev in (1,2,3,4)) and
(dateadd(day,-3,b.duedate) <= getdate()) and
((b.doccode=’XX-GEN’) OR (b.doccode like ‘SI%’)))
However when I try to do the same in xib I am having a problem with the alias “a”
xib does not accept the alias a after the update command
Does anybody know how to do this i a simple statement in xib?
Thanks
continue reading.....