Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Query returns two different results in 8i and 9i
Has anyone else experienced this...
(We have tried it with 9i and 8i. The problem surfaced in 9i. That is,
doesn't happen when logged into 8i)
A:
Select ... from ...
where ... in (select abc from xyz_at_dbConnection)
B:
Select ... from ...
where ... in (select abc from xyz)
When running the above two queries while logged into 8i, you get same
results for both. But when logged into 9i, the one with dbConnection
in the "in" list, returns one row for *every* value in the "in" list
--> you end up with duplicates in your result set.
Ofcourse you can fix it by putting "distinct" in the query, but why is it happening only when logged into 9i?
When you do a query, you never worry abot having duplicate values in your "in" list. But with this, you have to!
Any fix available for this?
thanks. Received on Fri Mar 11 2005 - 03:57:46 CST