Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> SQL SELECT Cartisian Problem
I am trying to link link one main table to two child tables that have no
link between them. Trying to figure away to prevent a Cartesian product
of the tables. For example if I want the results to be:
Name Dogs Cats ------ ----- ---- John dog1 cat1 dog2 cat2 dog3
How could i do this if the owner, dogs, and cats are all in separate tables and i don't know how many of each pet there are. I do not want to use a union with blank spaces, and i do not want to get 6 rows back.
Thanks, R. Received on Thu Apr 22 1999 - 12:26:22 CDT