![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 04 Sep 2003 @ 21:30:22 GMT
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
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 30 Jun 2008 | ||||||||||||||||||||||||||||||||||||||||||||||||