Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 Mar 2012 @ 14:09:45 GMT


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


Subj:   Re: Second minimum date
 
From:   Gregg, William

Hi Sathesh -- using a sub-select pull all the rows except the minimum. Then select the minimum from the sub-select set.

Alternatively, U can use the various ranking SQL techniques to select, rank, and pull the lowest 2, getting the desired row that way.


Rgrds,

Bill Gregg, Teradata



     
  <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