Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Cross Apply - DateRollup With Acceptable Gap

$
0
0

Hi,

I am pulling  data  From OLEDB Source

MemID      Indicator     EffectDate      EndDate
1                 y              20100401      20100801
1                 y              20110129       20120506
2                 y             20100606        20111231
2                 y             20120101        20120601


If the MemID  is same  and Indicator is same then it should look for dates .

See the MemID 2 ,  Enddate is 20111231 AND again  started in 20120101 SO there in no gap in  ENDDATE AND  EFFECTDATE
Then the record Detination should come LIKE   

  • MemID      RiskInd     EffectDate      EndDate
    1                 y              20100401      20100801
    1                 y              20110129       20120506
    2                  y              20100606       20120601

I should do this in ssis , Between Source and Destination components

Thanks,





Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>