比较源和目标日期的最佳方法

Best way to compare date from source to target

我希望将 Salesforce 同步到 sql table with informatica cloud。在更新 sf 记录之前,我需要将 salesforce 对象中的日期与 sql table 中的日期进行比较。如果 sf 记录的创建日期在 sql 中开始日期的 10 天内,则用 sql 记录更新 sf,否则忽略。我过去做过一些同步,但从来不需要有来自源和目标的标准。我通常只需要处理 sql 中的查询。希望找到一种相对简单的方法来做到这一点。

使用 Informatica 的 DATE_DIFF 函数

https://docs.informatica.com/data-integration/powercenter/10-1/_transformation-language-reference_powercenter_10-1_ditamap/dates/understanding_date_arithmetic.html