Let's start with a single column comparison:
db2 => select * from no_null where c1 <> all ( select c1 from some_null) ;
C1 C2
------------------------ ------------------------
0 record(s) selected.
So far so good.
Now, let's try two columns, c1 and c2:
db2 => select * from no_null where (c1, c2) <>ALL ( select c1, c2 from some_null) ;
SQL0104N An unexpected token "(" was found following "". Expected tokens may
include: "". SQLSTATE=42601
Fun eh? ;)
No comments:
Post a Comment