Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 11 Mar 2011 @ 09:28:34 GMT


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


Subj:   Teradata query Vs Oracle query
 
From:   Roy, Ashutosh

Hi,

Could anybody of you please let me know the equivalent Teradata query of below ORACLE query-

     SELECT distinct  max(irs_name) KEEP (DENSE_RANK LAST
     ORDER BY YMDTRANS, extraction_date ) OVER (PARTITION BY  IRS_NBR,
           BUS_UNIT) AS IRS_NAME,  TRIM(IRS_NBR) AS IRS_NBR, BUS_UNIT AS BUS_UNIT
     from AMI_STAGE_OWN.IRS_M
     ORDER BY IRS_NBR,BUS_UNIT,IRS_NAME

Regards,

Ashutosh



     
  <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: 27 Dec 2016