Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 10 May 2006 @ 13:38:40 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: The first lines for the result of a request
 
From:   Dempsey, Mike

Another post gave an answer that will work on both new and older versions of Teradata. (Using Qualify(row_number ...))

If you are on a recent version (dont remember which one introduced the 'TOP' keyword) you can use:

     Select Top 50 c1, c2 ...

or

     Select Top 50 With Ties c1, c2 ...

You will need to use an Order By clause in order for TOP (or Qualify) to have any meaning of course.


Mike Dempsey
Teradata Client Tools



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023