historical data load from SQL to teradata temporal table

雨燕双飞 提交于 2019-12-25 01:41:58

问题


I need to do a historical type 2 data from a SQL server table to treat temporal table. I asked this question earlier but did not ask it completely and only 1st part was mentioned in question. below is link for same: Previous Question with Answer Sorry if I am duplicating question but that thread looks dead and I can use some help here. I need have three versions of data in SQL server Version 1,2,3. e.g.

Version 1 -
 Effective start date   Effective End Date
 1/1/10                  1/1/11
Version 2 - 
Effective start date    Effective End Date
1/1/11                   1/1/14
Version 3 - 
Effective start date    Effective End Date
 1/1/14                  12/31/9999

I am able to set period start and end time manually for version 1 but as version one is already expired so i am not able to add version 2 keeping version 1 also in teradata. If i try to do that it actually override version 1 itself and only latest version is present in teradata. Can someone please help. Thanks!

来源:https://stackoverflow.com/questions/33613288/historical-data-load-from-sql-to-teradata-temporal-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!