Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 27 Apr 2004 @ 20:55:25 GMT


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


Subj:   Re: Conditional max
 
From:   Maxwell, Donald

     SELECT
             ,PARENT
             ,CHILD
             ,AMT
     FROM    SomeTable
     QUALIFY SUM(1) OVER ( PARTITION BY PARENT
             ORDER BY Amt desc, CHILD desc ) = 1;

Donald Maxwell



     
  <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