All interactions table for CALLS and DIGITAL
This commit is contained in:
parent
0b1ba29825
commit
d8a214bc23
30
definitions/gold/ALL_INTERACRIONS_SUM.sqlx
Normal file
30
definitions/gold/ALL_INTERACRIONS_SUM.sqlx
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
config {
|
||||||
|
type: "table",
|
||||||
|
schema: "pphe_five9_gold",
|
||||||
|
assertions: {
|
||||||
|
uniqueKey: ["?"],
|
||||||
|
nonNull: ["?"]
|
||||||
|
},
|
||||||
|
tags: ["daily"],
|
||||||
|
description: "All interactions table for CALLS and DIGITAL"
|
||||||
|
}
|
||||||
|
|
||||||
|
select TIMESTAMP,
|
||||||
|
DATE,
|
||||||
|
HOUR_OF_DAY,
|
||||||
|
MONTH,
|
||||||
|
YEAR,
|
||||||
|
AGENT_ID,
|
||||||
|
'PHONE' MEDIA_TYPE_ID,
|
||||||
|
1 INTERACTIONS
|
||||||
|
from ${ref("CALLS")}
|
||||||
|
union all
|
||||||
|
select TIMESTAMP,
|
||||||
|
DATE,
|
||||||
|
HOUR_OF_DAY,
|
||||||
|
MONTH,
|
||||||
|
YEAR,
|
||||||
|
AGENT_ID,
|
||||||
|
MEDIA_TYPE_ID,
|
||||||
|
INTERACTIONS
|
||||||
|
from ${ref("DIGITAL")}
|
||||||
Loading…
Reference in New Issue
Block a user