如何根据案例陈述中的条件每90天获取一次记录?
SELECT
LB.bayview_loan_number Loan_Number,
CASE WHEN DATEDIFF(day, OL.LOAN_ADDED_DT, PH3.SKIPTR) >= 120
AND DATEDIFF(day, OL.LOAN_ADDED_DT, GETDATE()) > 150
AND Con2.LastCon IS NULL THEN **--repeat this step every 90 days** 'LMSKIP'
END AS ST
FROM
CAPMKTS.dbo.Loan_Bayview LB
INNER JOIN
LDG.dbo.LDG_ORIGINAL_LOAN OL ON LB.bvln = OL.ln_no