Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 06 Jan 2003 @ 18:25:52 GMT


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


Subj:   Re: Cross join
 
From:   Wight, John K

It appears that you have a join predicate in the WHERE clause:

from dev.travcard a,dev.customer_cops b

        where a.install is not null and a.inactivate is null
        and b.recid = a.fk_Customer

If this is the case you will get a INNER JOIN. If you want a cross join, I would suggest the following syntax:

        from
                dev.travcard a
                CROSS JOIN
                dev.customer_cops b

        where a.install is not null and a.inactivate is null

And take out the join predicate, "and b.recid = a.fk_Customer" in the WHERE Clause.

Looking at the projected columns and the CASE statements - are you sure you are wanting a CROSS JOIN? Not knowing the details it's hard to tell.

Hope this helps.



     
  <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