changed name

This commit is contained in:
Joaquin Ossa 2024-11-18 15:54:23 +01:00
parent a072a426dd
commit ce27d7e843

View file

@ -15,7 +15,7 @@ with
) as rn
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
-- Unique Key --
b.check_in_date_utc as date,
@ -99,7 +99,9 @@ select
end
) as average_csat_score
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
{{ 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