Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 19 Jan 2010 @ 14:40:26 GMT


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


Subj:   Re: Sub query refactoring
 
From:   Leslie, Quincy

Here's my proposal, using std SQL derived tables:

     Select
     e.first_name,
     e.last_name,
     d.department
     from
      (select first_name, Last_name, dept_id from employee) e, ,(select dept_id, name from
     department) d where e.dept_id = d.dept_id;

Same, but different.



     
  <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