Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Query not returning same results when displaying one column less
Hi there.
I have an Oracle Database 8.1.7.0.0 running on Windows 2000 SP4. I have a query from one customer which gives a different result when displaying one column less. No change to the where clause or the joins. Shouldnt then the same results be returned?
The query is like this:
SELECT a.toolid, c1.valnum AS YS
FROM tms.TDM_TOOL a,
tms.TDM_TOOLVALUES c1
WHERE TOOLCLASSID IN
('D01','D04','D06','D07','D08','M01','M02','M03','M04','M05','M06','M07'
WHERE a.TOOLCLASSID = h.TOOLCLASSID AND h.functypeid ='YS'),0)
when I ommit the c1.valnum as sys then more entries are displayed. So the query look like this then:
SELECT a.toolid
FROM tms.TDM_TOOL a,
tms.TDM_TOOLVALUES c1
WHERE TOOLCLASSID IN
('D01','D04','D06','D07','D08','M01','M02','M03','M04','M05','M06','M07'
WHERE a.TOOLCLASSID = h.TOOLCLASSID AND h.functypeid ='YS'),0)
Why is this? shouldn the same results beeing returned?
-- mfg Marc EggenbergerReceived on Thu Feb 17 2005 - 04:53:45 CST