reporting table

This commit is contained in:
Pablo Martin 2024-01-18 14:49:33 +01:00
parent cf93b58092
commit 177c07d683
3 changed files with 10 additions and 3 deletions

View file

@ -32,12 +32,12 @@ clean-targets: # directories to be removed by `dbt clean`
# files using the `{{ config(...) }}` macro.
models:
dwh_dbt:
# Config indicated by + and applies to all files under models/example/
example:
+materialized: view
staging:
+materialized: table
+schema: staging
working:
+materialized: view
+schema: working
reporting:
+materialized: table
+schema: reporting

View file

@ -0,0 +1,3 @@
with wkg_core_dq_dealid_health as (select * from {{ ref("wkg_core_dq_dealid_health") }})
select *
from wkg_core_dq_dealid_health

View file

@ -0,0 +1,4 @@
with wkg_core_unified_user as (select * from {{ ref("wkg_core_unified_user") }})
select id_deal, count(1) as users_with_this_id_deal
from wkg_core_unified_user
group by id_deal