diff --git a/definitions/staging/stg_calls.sqlx b/definitions/staging/stg_calls.sqlx index efa089e..efbaaf0 100644 --- a/definitions/staging/stg_calls.sqlx +++ b/definitions/staging/stg_calls.sqlx @@ -78,7 +78,11 @@ select DAY_OF_WEEK, else timestamp end TIMESTAMP, -- 2023 timestamps are in PT (and there time changes are on different dates) TIME_INTERVAL, - ABANDON_RATE, + case + when ABANDON_RATE in ('100.00%', '1') + then 1 + else 0 + end ABANDON_RATE, ANI_AREA_CODE, ANI_COUNTRY, ANI_COUNTRY_CODE,