changed name
This commit is contained in:
parent
a072a426dd
commit
ce27d7e843
1 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ with
|
||||||
) as rn
|
) as rn
|
||||||
from {{ ref("int_core__bookings") }}
|
from {{ ref("int_core__bookings") }}
|
||||||
),
|
),
|
||||||
bookings as (select * from ranked_bookings where rn = 1)
|
unique_bookings_verification_request as (select * from ranked_bookings where rn = 1)
|
||||||
select
|
select
|
||||||
-- Unique Key --
|
-- Unique Key --
|
||||||
b.check_in_date_utc as date,
|
b.check_in_date_utc as date,
|
||||||
|
|
@ -99,7 +99,9 @@ select
|
||||||
end
|
end
|
||||||
) as average_csat_score
|
) as average_csat_score
|
||||||
from {{ ref("int_core__verification_requests") }} as vr
|
from {{ ref("int_core__verification_requests") }} as vr
|
||||||
inner join bookings as b on b.id_verification_request = vr.id_verification_request
|
inner join
|
||||||
|
unique_bookings_verification_request as b
|
||||||
|
on b.id_verification_request = vr.id_verification_request
|
||||||
left join
|
left join
|
||||||
{{ ref("int_core__user_host") }} as icuh on vr.id_user_host = icuh.id_user_host
|
{{ ref("int_core__user_host") }} as icuh on vr.id_user_host = icuh.id_user_host
|
||||||
left join {{ ref("int_core__deal") }} as icd on icuh.id_deal = icd.id_deal
|
left join {{ ref("int_core__deal") }} as icd on icuh.id_deal = icd.id_deal
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue