five9/definitions/export/calls_export.sqlx

10 lines
273 B
Plaintext

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