Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Sat, 16 Mar 2003 @ 03:08:23 GMT

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

Subj:   Re: SQL to calculate tenure in months
From:   Dennis Calkins

Burton, Bruce wrote:

  Anyone willing to share "production" sql logic on how to calculate a customer tenure in months from a teradata table?  

sel ( reporting_date - install_date) interval month(4);

This is limited to 9999 months or about 833 years. Is that enough to avoid overflow? 4 is the maximum digits allowed in Teradata SQL.

  <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: 27 Dec 2016