Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 26 Mar 2004 @ 22:26:53 GMT


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


Subj:   Re: SAMPLE syntax
 
From:   Summers, Scott

closed interval is correct....

simple  example: dbc.infotble  has  2 rows...

select * from  dbc.dbcinfotbl sample  0;  works fine
select * from  dbc.dbcinfotbl sample  2;  works fine

so you could have your application get a count for the table and then use that number in your select/sample statement to get all the rows.



     
  <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: 27 Dec 2016