Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 04 Sep 2003 @ 21:30:22 GMT


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


Subj:   Re: Rank top and bottom
 
From:   Anantaraman, Kumaran (K.)

select
  rank (col1 )
from
  tablex
qualify (
  (rank(col1 asc )) < 10 or
  (rank(col1 desc)) < 10
)

And the explain indicates that it is not doing additional STAT step to get both top-N and bot-N

Kumaran Anantaraman



     
  <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