Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sun, 04 Jun 2006 @ 09:51:11 GMT


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


Subj:   Customer relationship algorithm
 
From:   Anomy Anom

<-- 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.


Thank you.



     
  <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