| View previous topic :: View next topic |
| Author |
Message |
tgomes Newbie

Joined: 29 May 2009 Posts: 1
|
Posted: Fri May 29, 2009 2:58 pm Post subject: as400 - update query problem |
|
|
The code below works in a SQL server environment, when I try to use the same in AS400 STrSQL I get a error message that I can not use Inner on a Update query.
UPDATE PWPTFILES/UPRM A INNER JOIN TGOMES/THUCSRMT B ON A.UPPRM =
B.UCPRM) INNER JOIN TGOMES/WRATELISTT C ON (C.UCSCOLD = B.UCSCH)
AND (B.UCSIZ = C.UCSIZ) AND (A.UPTYP = C.UPTYP)
SET B.UCSCH = C.UCSCHNEW
WHERE ((B.UCTYP='W') AND (B.UCACT=0) AND (B.UCCLD=0) AND
(A.UPRTE Not IN ( 0,1000,4000) AND C.UPTYP ='COM ')
How can I rewrite this into sql 400 and work! |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
Posted: Sat May 30, 2009 4:49 am Post subject: |
|
|
| How is this question related to OOo Base? |
|
| Back to top |
|
 |
|