Re: ? Very large tables vs unioning smaller tables

From: Steve Edelstein <74160.645_at_CompuServe.COM>
Date: 1995/12/13
Message-ID: <4amqlm$ko4$1_at_mhafm.production.compuserve.com>#1/1


Why are the 2 emp tables separate? If they have the same columns in them, are the emps qualitatively different? Was this a design consideration? The UNION makes sense, but the 2nd query (select * from emp,dept where...) will do a cartesian product if the join condition is absent. That means that EVERY rtow of the emp table is joined to EVERY row of the dept table, even if that makes no sense. With the join, the indexes on emp and dept will resolve the query without the cartesian product. Am I missing something?????

HTH

-- 
Steve Edelstein                      VOICE: 212-956-3670
Relational Business Systems          CompuServe: 74160,645
124 West 60th Street  Suite 47C            Author of
New York, NY 10023                    "Learning Oracle Forms"
Received on Wed Dec 13 1995 - 00:00:00 CET

Original text of this message