Change dates

This commit is contained in:
Anna Saiapina 2024-11-22 15:16:17 +00:00 committed by GCP Dataform
parent 0c8d534db6
commit add6e94187

View File

@ -1,7 +1,7 @@
config {
type: "table",
schema: "pphe_five9_gold",
description: "Exporting last 7 days of csc_agent table"
description: "Exporting last 3 days of csc_agent table"
}
select RESORT,
@ -20,5 +20,5 @@ select RESORT,
REVENUE_GENERATING_YN,
COUNTER
from ${ref("stg_csc_agent")}
where DATE >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
where DATE >= DATE_SUB(CURRENT_DATE(), INTERVAL 4 DAY)
and CSC_AGENT_YN = 'Y'