Hello, I am running 2 queries against an informix database. the queries are hitting 4 different tables with both inner an outer joins. I thought they should both return the same result set, but I am getting a 3 record difference. below are the 2 queries -
query 1 (returns 65 rows) -
select ...
from table1, table2, outer table3, outer table4
where table1.id = table2.id
and table1.id = table3.id
and table1.id = table4.id
and .....
query 2 (returns 62 rows) -
select ....
from table1 inner join table2 on table1.id = table2.id
left outer join table3 on table1.id = table3.id
left outer join table4 on table1.id = table4.id
where .....
Does anyone have any idea why these 2 return different result sets? I assumed that by changing to use inner join / left outer join instead of just using outer (and nothing for the inner join) would return the same results.