Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 31 Oct 2003 @ 17:41:04 GMT


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


Subj:   Re: Is there any system column like the Oracle RowNum in Teradata?
 
From:   Gorrella, Srini

Ganga,

You need to use QULAIFY to get the rows you want , you can see the SQL below

..Hope this helps

SEL
        CSUM(1,COL1) AS ROWNUM,
        COL2,
        COL3
FROM MYTABLE
QUALIFY ROWNUM >= 5;

Thanks,

Srini



     
  <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