From add6e9418731a9f3a15b264449eccabe31ec7b26 Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Fri, 22 Nov 2024 15:16:17 +0000 Subject: [PATCH] Change dates --- definitions/export/csc_agent_export.sqlx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/export/csc_agent_export.sqlx b/definitions/export/csc_agent_export.sqlx index 18c31ce..221f759 100644 --- a/definitions/export/csc_agent_export.sqlx +++ b/definitions/export/csc_agent_export.sqlx @@ -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' \ No newline at end of file