oracle时间拉链问题,如题

oracle时间拉链问题,如题,第1张

select * from table t1

where et <= any (select ef from table t2 where t2.company=t1.company and t2.AGENCYID=t1.AGENCYID)

or

ef >= any (select et from table t3 where t3.company=t1.company and t3.AGENCYID=t1.AGENCYID)

order by company, AGENCYID,ef

1.采集当日全量数据存储到 ND(当日) 表中。

2.可从历史表中取出昨日全量数据存储到 OD(上日数据)表中。

3.用ND-OD为当日新增和变化的数据(即日增量数据)。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/6845983.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-29
下一篇 2023-03-29

发表评论

登录后才能评论

评论列表(0条)

保存