commit wip

This commit is contained in:
Joaquin Ossa 2025-01-02 15:14:41 +01:00
parent e406bc89ad
commit 84f2156c99

View file

@ -0,0 +1,20 @@
with
int_xero__contacts as (select * from {{ ref("int_xero__contacts") }}),
int_core__unified_user as (select * from {{ ref("int_core__unified_user") }}),
int_hubspot__deal as (select * from {{ ref("int_hubspot__deal") }})
select 'core' as source, id_deal, company_name as deal_name
from int_core__unified_user
where id_deal is not null
union all
select 'hubspot' as source, id_deal, deal_name
from int_hubspot__deal
where id_deal is not null
union all
select 'xero' as source, id_deal, contact_name as deal_name
from int_xero__contacts
where id_deal is not null