Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 02 Dec 2004 @ 21:32:49 GMT


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


Subj:   Best way of writing SQL to retrieve a sample
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, December 02, 2004 16:19 -->

Hello,

If the table T1 has the following records:

     Column Name Number of records
     Country                  10
     States                    50
     County                   500

And heirarchy is something like this.

Many country can have many states and many counties

What is the best way to retrieve sample 50 County for each Country.


Thanks,



     
  <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