Hello, have you any idea how to correctly join 2 tables using unique composite index which contains nulls in some of columns, but combination of all is unique?
Ex.
table a (i integer not null, j smallint not null, k char(5), l decimal(5), val integer, checksum integer not null)
table b(i integer not null, j smallint not null, k char(5), l decimal(5), checksum not null)
there is unique index on i,j,k,l and k and l contains nulls in some rows, one or other o both
join
select a.*
from a, b
where
a.i = b.i and
a.j = b.j and
a.k = b.k and
a.l = b.l
and a.checksum !=b.checksum
do not produces correct values for rows with null values on k and l.
And join condition for table in select I want to generate from info in sysindexes
Thanks a lot
------------------------------
Milan Rafaj
------------------------------
#Informix