From 5f9909a7d62b392e09528fd5d7560aeed521c8b5 Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Wed, 17 Jul 2024 12:04:18 +0000 Subject: [PATCH] Add media type to calls report --- definitions/staging/stg_calls_report.sqlx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/definitions/staging/stg_calls_report.sqlx b/definitions/staging/stg_calls_report.sqlx index 0d41acb..00d7bb2 100644 --- a/definitions/staging/stg_calls_report.sqlx +++ b/definitions/staging/stg_calls_report.sqlx @@ -57,7 +57,8 @@ select sc.SESSION_ID, sc.CALLS, sc.ANI, c.CAMPAIGN_TYPE_ID, - sc.CAMPAIGN_TYPE + sc.CAMPAIGN_TYPE, + "PHONE" MEDIA_TYPE_ID from ${ref("stg_calls")} sc left join ${ref("stg_AGENT")} a on sc.AGENT_ID = a.AGENT_ID