Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

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


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


Subj:   Re: Second minimum date
 
From:   Burns, Paul

Perhaps something like this would work for your

     select login_Id, login_dt
     from your_table
     qualify row_number() over (partition by login_ID order by login_dt asc ) = 2 ;

Paul Burns



     
  <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: 28 Jun 2020