Quote:
|
select * from table1 where (field1,field2) not in (select field1,field2 from table2 )
|
You can do that in DB2 for LUW. DB2 for z/OS also support that syntax.
For more general syntax, you can see in
"DB2 SQL Reference" ---> "Chapter 2. Language elements" ---> "Predicates" ---> "IN predicate" and "Quantified predicate".
You can see DB2 9 for LUW PDF manuals here.
http://www-01.ibm.com/support/docvie...id=swg27009552
or
http://www-01.ibm.com/support/docvie...id=swg27009552
DB2 9 for Linux, UNIX and Windows manuals
Manual
Abstract
This page contains English Portable Document Format (PDF) manuals for DB2® 9 for Linux®, UNIX® and Windows® products, and additional components such as DB2 Connect™ and WebSphere® Federation Server.