Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Return 1 row from joined table
What is different about the rows? Using something like rownum=1 is a
kludge. It means you haven't identified all the conditions that are
unique to the solution set.
As a first pass, try removing the rownum condition, add a count(*) to the select clause and the appropriate group by clause. If the counts are all 1 then you never needed any other condition in the first place. If they are not, you neee to think about what conditions you are missing.
HTH
ed
Received on Thu Dec 23 2004 - 13:39:08 CST