Archives of the TeradataForum
Message Posted: Fri, 23 Jan 2009 @ 21:59:14 GMT
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|