iSeries SQL Programming Youve Got The Power

 
 
 
 
 
Download PDF FREE
Value This
Doc
Scribd
Average
     
Pages: 13 43
Words: 7572 13640
Characters: 44318 81678
Lines: 140 623
     
     
Letters per word: 5.85 5.99
Words per line: 54.09 21.89
Words per page: 582.46 317.21

Add to your reading list

Flag_red Flag this document

Document Information

20,375 Reads | 1 Comment

Description

iSeries SQL Programming Youve Got The Power

Pdf_16x16 13 Pages


Date Added

04/08/2008

Category

Uncategorized.

Tags
Groups
Awards

Flame Rising

Copyright

Attribution Non-commercial

More info »

 

or use Facebook Connect

steveschoon

I come from the Iseries world and I also work on SQL Server 2005 and 2008 and there subtle differences in the syntax of the SQL statements. Here is another sample of a update statement with a subquery that has an inner join on the Iseries. You need to qualify the sub query to match a field in the update statement. Update scslib.dbnucust c Set Txt6 = SubStr(txt6,1,17) || substr(Txt6,4,1) || substr(txt6,19,2) Where Exists ( Select cstmr, DACMHLLDHL, txt6, txt7 FROM scslib.dbnucust a inner Join Lawdbf7t.dbaracm1 b On (a.Cstmr = b.DACMCSTMR) Where b.DACMHLLDHL <> 'DEAD' And b.DACMHLLDHL <> 'CLSD' And b.DACMHLLDHL <> 'OLDO' And c.Cstmr = a.Cstmr)

02 / 26 / 2009