I have two fields Last Pay Date and Payment Due Date so if someone missed there Payment due date by 5 days I want those records.
Now the issue is i dont have extra field to identify the days the missed by.
want to use Last Pay date and if Last Pay Date is not Payment Due date then calculate the days ?
Thanks,
Malik
2 个回答
Per @Mateusz Dąbrowski's amazing SQL resources try experimenting with DateDiff in your Where clause. https://mateuszdabrowski.pl/docs/sql/sfmc-sql-date-functions/