I have certain loan ID origination data in one data file and another data file measure the performance of these loan ID's over the time period.
Now I want to know the loan ID which default over a certain time period. Lets say time period of 12 quarters.
Example:
Origination file
Loan_ID loan_terms loan_amount Date
1         360       1000     01/01/2010
2         240       2000     05/15/2010
3         150       3000     10/01/2010 
Perf
      Loan_ID Delinquency_Status Date
1       Active             01/01/2012  
1       Active             01/03/2012
1       Default            01/06/2012
2       Active             01/01/2013
2       Active             06/01/2013
2       Prepayment         09/01/2013 
3       Active             12/30/2013
Since I am evaluating the performance over the 12 quarter only from 01/01/2010. I want the following:
Loan_ID Delinquency_Status 
1        Default
2        Active   
3        Active
 
    