Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 30 Jan 2002 @ 00:31:21 GMT


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


Subj:   SAMPLE statement for multiple groups
 
From:   JC Sheu

Hi,

Suppose I have a table with two columns: USER_ID and GROUP_ID. Assume I have 1000 users in 20 groups and each group has different number of users. Is there an easy way to sample certain # (or %) of users from each group without hitting this table 20 times?

Thank you for your help!

JC



     
  <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