Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 21 Apr 2011 @ 11:47:45 GMT


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


Subj:   Re: Number of rows in an unknown partition
 
From:   Mahindrakar, Krishna Raj

Number of rows in an unknown partition:

     sel partition,count(*)
       from kris.t10
       where partition=(sel max(a.partition)
                          from kris.t10 a)
       group by 1;

Number of rows in No range partition:

     sel partition,count(*)
       from kris.t10
       where partition=(sel max(a.partition)-1
                          from kris.t10 a)
       group by 1;


     
  <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