Archives of the TeradataForum
Message Posted: Sun, 04 Jun 2006 @ 09:51:11 GMT
<-- Anonymously Posted: Saturday, June 03, 2006 16:57 -->
Can anyone offer an algorithm to answer what must be a common question?
I have a set of different customer accounts with open and closure dates. If an account is still open the closure date is null.
For a given customer I need to work out the full series of open and closure dates for each customer relationship with the supplier.
A customer can have multiple accounts open at any point in time, the account open and closure dates can overlap. Some accounts may still be open.
Without resorting to recursive programming techniques I can't see how to do this in SQL.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|