Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 05 Dec 2008 @ 10:42:17 GMT


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


Subj:   Rank and Delete?
 
From:   Yon, Bob

Can someone tell me the following query can be converted to a delete statement:

     SELECT RUN_DT,
     RANK() OVER (ORDER BY RUN_DT)
     FROM DB.forecast_table
     WHERE FRC_CD = 52
     GROUP BY RUN_DT
     QUALIFY RANK() OVER (ORDER BY RUN_DT) >24

Is it possible to use RANK in a DELETE statement?


Thanks,

Bob



     
  <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