|
|
Archives of the TeradataForum
Message Posted: Tue, 11 Nov 2008 @ 08:39:05 GMT
Subj: | | Re: Time interval between events |
|
From: | | Andrew Schroter |
Have you considered an installed_dte and a deinstalled_dte column, where the deinstalled_dte column is updated when a replacement part of the
same partID replaces an existing part at a location? You could then calculate the interval dynamically in your sql for each part. You could set
the current part's deinstalled_dte to null or a "high" date and separately calculate that part's installed interval.
Cheers,
Andy
| |