  |  
  |  
 
Archives of the TeradataForum 
 
 
Message Posted: Fri, 23 Jan 2009 @ 21:59:14 GMT 
 
  
 
 
 
 
  
|  Subj:  |   |  Re: Limitations on RANK() function  |   
|     |   
|  From:  |   |  Michael Larkins  |   
  
 
 
  
Zdravko: 
I would imagine that RANK() can do 1Mil rows or more.   However, why would you?   It would be faster to just sort them.   RANK() really is best
when used with the QUALIFY to return a specific number of rows and not all rows.  What are you really trying to determine?  If you are looking for
a sequential number - RANK is not it.   You should be using ROW_NUMBER. 
 regards, 
Michael Larkins 
Certified Teradata Master 
Certified Teradata SQL Instructor 
 
 
 
 
   
 
 |   |