Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 11 Aug 2005 @ 10:52:24 GMT


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


Subj:   Re: Help need on Tricky SQL
 
From:   Victor Sokovin

  I thought the analytical functions might help me, something like  


          > select key ,MIN(applied) OVER (PARTITION BY Key ORDER BY applied),
          > MAX(applied) OVER (PARTITION BY Key ORDER BY applied)

Just get rid of the ORDER BY in the above. You don't need this extra ordering because MIN and MAX are doing the ordering for you. I think this is the only problem with your SQL. Please get back if it still does not work.


Regards,

Victor



     
  <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