In Standard SQL, the syntax would be:
where S_date >= current_date - interval '3 day' and
S_date < current_date
This works in some databases. But databases typically have their own date/time functions, so the syntax likely needs to be customized to your database.
In Snowflake:
where S_date >= dateadd(day, -3, current_date) and
S_date < current_date
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…