data-dwh-dbt-project/models/intermediate/int_core__unified_user.sql

39 lines
912 B
MySQL
Raw Normal View History

2024-01-18 14:25:13 +01:00
with
2024-01-18 17:34:39 +01:00
stg_core__user as (select * from {{ ref("stg_core__user") }}),
stg_core__superhog_user as (select * from {{ ref("stg_core__superhog_user") }})
select
2024-01-18 14:25:13 +01:00
id_user,
user_code,
2024-02-13 12:53:00 +01:00
first_name,
last_name,
2024-01-18 14:25:13 +01:00
email,
title,
id_deal,
is_deleted,
join_date_utc,
2024-02-13 12:53:28 +01:00
user_name,
2024-01-18 14:25:13 +01:00
code_prefix,
billing_town,
company_name,
is_email_confirmed,
is_lockout_enabled,
billing_postcode,
id_billing_country,
is_twofactor_enabled,
access_failed_count,
lockout_end_date_utc,
avatar,
id_airbnb,
airbnb_url,
created_date_utc,
updated_date_utc,
verified_date_utc,
flag_as_problem,
number_of_properties,
id_superhog_verified_set,
platform_comms_recipient,
other_sharing_platform_url,
id_user_verification_status
2024-01-18 17:36:20 +01:00
from stg_core__user as u
inner join stg_core__superhog_user as su on u.id_user = su.id_superhoguser