Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 06 Mar 2008 @ 23:24:37 GMT


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


Subj:   Re: Teradata Query with Subselect
 
From:   Michael Larkins

Kishore:

You can only put a subselect in a WHERE or a FROM. When it is used in the WHERE as a subquery, it allows for a comparison to determine which rows from the main select to return. When written in the FROM it is a derived table and columns can be selected and joined from it.

However, as other people have indicated, there is no need for you to use a sub-select when writing it as a normal JOIN works just fine.


Regards,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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