Adding first views

This commit is contained in:
Anna Saiapina 2024-02-23 14:50:27 +00:00 committed by GCP Dataform
parent ccd2a3517e
commit aae3b89feb
2 changed files with 24 additions and 0 deletions

View 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")}

View 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