Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 19 Jan 2006 @ 11:11:26 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Differences between queries
 
From:   David Wellman

Hi Vijay,

1) Those three terms are very similar. "cross join" (a) is the ANSI syntax name for what is often referred to as an "unconstrained product join" (which is a "cartesian join" - c) . The number of rows in the output (spool file in Teradata terms) is the product of the number of qualifying rows in each of the two inputs. Think of "cross join" as a "join type", it provides a certain piece of functionality (not used often in business queries).

A "product join" is a join strategy, i.e. what type of processing the DBMS is going to use to answer your query. Even if you code an INNER or OUTER join in your SQL, you may well find that the optimiser chooses a product join as the processsing mechanism. The number of rows in the output of a "product join" will be the product of the qualifying rows in each of the inputs, where the join criteria are met.


Cheers,


Dave

Ward Analytics Ltd: Information in motion ( www.ward-analytics.com )



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023