Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL SELECT Cartisian Problem
Richard Murphy
> Name Dogs Cats
> ------ ----- ----
> John dog1 cat1
> dog2 cat2
> dog3
Maybe something like
break on name
select t1.name, t2.name, t3.name
from owners t1
, (select rownum, owner, name from dogs) t2
, (select rownum, owner, name from cats) t3
where t1.name = t2.owner(+)
and t1.rownum = t2.rownum(+) and t1.name = t3.owner(+) and t1.rownum = t3.rownum(+)
Arjan. Received on Thu Apr 22 1999 - 13:23:39 CDT