I have a curious problem which I think must have something to do with
comparing VARCHAR's.
I have two tables, each with an XXX VARCHAR(30). I have LOAD'ed one row
into each table from a tab-delimited flat file. XXX is 701 in both tables.
The only difference is that in T1, XXX is a column in the middle of the row,
but in T2, it is the last column. Then:-
SELECT T1.A FROM T1, T2 WHERE ( T1.XXX = 701 AND T2.XXX = 701 );
shows the one row from T1 just fine. And:-
SELECT T1.A FROM T1, T2 WHERE ( T1.XXX = T1.XXX );
shows the one row from T1 just fine. But:-
SELECT T1.A FROM T1, T2 WHERE ( T1.XXX = T2.XXX );
shows an empty set. Huh?
Rgds, GStC.