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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue