Adding first views
This commit is contained in:
parent
ccd2a3517e
commit
aae3b89feb
10
definitions/staging/stg_AGENT.sqlx
Normal file
10
definitions/staging/stg_AGENT.sqlx
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
config {
|
||||||
|
type: "view",
|
||||||
|
schema: "pphe_five9_stg",
|
||||||
|
tags: ["snapdaily"],
|
||||||
|
description: "All fields that are connected to the AGENT"
|
||||||
|
}
|
||||||
|
|
||||||
|
select
|
||||||
|
*
|
||||||
|
from ${ref("MAPPING_MEDIA_TYPE")}
|
||||||
14
definitions/staging/stg_DISPOSITION.sqlx
Normal file
14
definitions/staging/stg_DISPOSITION.sqlx
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
config {
|
||||||
|
type: "view",
|
||||||
|
schema: "pphe_five9_stg",
|
||||||
|
tags: ["snapdaily"],
|
||||||
|
description: "All fields that are connected to the DISPOSITION"
|
||||||
|
}
|
||||||
|
|
||||||
|
select
|
||||||
|
*
|
||||||
|
from ${ref("MAPPING_DISPOSITION_ID")} d
|
||||||
|
join ${ref("stg_MAPPING_DISPOSITION_ID_GROUP")} di
|
||||||
|
on d.DISPOSITION_ID = di.DISPOSITION_ID
|
||||||
|
join ${ref("stg_MAPPING_DISPOSITION_GROUP_ID")} dg
|
||||||
|
on d.DISPOSITION_GROUP_ID = dg.DISPOSITION_GROUP_ID
|
||||||
Loading…
Reference in New Issue
Block a user