Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 29 May 2009 @ 19:46:45 GMT


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


Subj:   Re: Syntax for Cumulative Sum
 
From:   Mohammad.Sabir

SYNTAX:

     SEL CSUM(,  [ASC | DESC] [ [ASC |
     DESC]....)
     FROM 
     [GROUP BY  [, ....]]
     ;

EXAMPLE:

     SELECT PRODUCT
             ,DATE
             ,SALE
             ,CSUM(SALE, DATE) AS "CSUM"
     FROM TABLE
     WHERE PRODUCT BETWEEN 401 AND 500;

HOPE ITS HELP.


Regards,

Sabir, Mohammad



     
  <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