five9/definitions/gold/all_interactions_export.sqlx

10 lines
291 B
Plaintext

config {
type: "table",
schema: "pphe_five9_gold",
tags: ["daily"],
description: "Exporting last 7 days of ALL_INTERACRIONS_SUM table"
}
select *
from ${ref("ALL_INTERACRIONS_SUM")}
where date(timestamp) >= date_sub(current_datetime("Europe/Amsterdam"), INTERVAL 7 DAY)