Archives of the TeradataForum
Message Posted: Wed, 22 Mar 2006 @ 12:31:55 GMT
TOP function is introduced in V2R6, and the purpose of this function is to obtain a portion of the data from result set. If you are looking for ordered set, then you can use it with ORDER BY clause, which will give you highest or lowest value depending on whether you choose ASC or DESC in ORDER BY clause.
I do not have Teradata V2R6 currently, but you can check it your self by running the SQL few times and match the results. I believe that it is random based on hash values if order by clause is not used.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|