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 Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008