Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 19 Jan 2010 @ 01:14:37 GMT


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


Subj:   Re: Sub query refactoring
 
From:   Anomy Anom

<-- Anonymously Posted: Monday, January 18, 2010 19:35 -->

Yes and no.

Teradata 12 does support a single "WITH" using similar syntax, though I seem to recall needing to always specify the supposedly optional column name list

     With employee(fname, lname, dpt) as
             ( select first_name, Last_name, dept_id
               from employee)

Rumor has it some future release (but not 13.0) will support multiple WITH subqueries like Oracle and DB2 do. Until then, put "derived table expressions" in the FROM clause instead:

     FROM ( select first_name, Last_name, dept_id from employee) AS employee


     
  <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