Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 10 Feb 2016 @ 09:36:43 GMT


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


Subj:   Re: Split Table on Rank function
 
From:   Dieter Noeth

Sridhar K wrote:

  I have an requirement where I need to split the table rows into multiple parts while reading. Table has key values but they are not sequential. So is it possible to write a query to split the rows based on rank and get corresponding Key values.  


Have a look at QUANTILE (it's deprecated, but the manuals show how to rewrite it using RANK/COUNT), that's the easiest way to split an answer set into n parts.


Dieter



     
  <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