Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 18 Jan 2010 @ 23:58:37 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Sub query refactoring
From:   Kalki, Santosh


Does TD support sub query refactoring feature of Oracle? In Oracle one uses With clause..apparently TD uses that for roll up operations.

In Oracle

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

Is there a construct similar to above simple oracle example?


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