Time - (Age | Aging) Report

> (Data|State) Management and Processing > (Data Type|Data Structure) > Time

1 - About

An aging or age report shows a metrics by the age of something where the date of birth is generally the start date of a process.

Advertising

3 - Example

3.1 - Retention Rate

Customer - Retention

The metrics on week3 shows the number that are using the product and have signed-up three weeks ago.

3.2 - Age calculation in Oracle

CREATE TABLE t ( x DATE );
Table created.
INSERT INTO t VALUES ( to_date( '15-mar-1965', 'dd-mon-yyyy' ) );
1 row created.
SELECT ( systimestamp - CAST( x AS TIMESTAMP ) ) YEAR TO MONTH FROM t;
(SYSTIMESTAMP-CAST(XASTIMESTAMP))YEARTOMONTH
---------------------------------------------------------------------------
+44-01
SELECT 
        trunc(months_between(sysdate,x)/12) years,
        months_between(sysdate,x)-12*trunc(months_between(sysdate,x)/12) months
FROM t;
     YEARS     MONTHS
---------- ----------
        44 1.05426971
Advertising

4 - Reference