fixed naming

This commit is contained in:
Joaquin Ossa 2025-02-12 09:24:53 +01:00
parent 0866b2bf9d
commit aa840aedd0
2 changed files with 12 additions and 12 deletions

View file

@ -105,14 +105,14 @@ with
then bpb.id_booking
else null
end
) as incomplete_information_bookings,
) as number_incomplete_information_bookings,
count(
distinct case
when upper(b.booking_state) = {{ var("no_flags_booking_state") }}
then bpb.id_booking
else null
end
) as no_flags_bookings,
) as number_no_flags_bookings,
count(
distinct case
when
@ -120,14 +120,14 @@ with
then bpb.id_booking
else null
end
) as not_approved_bookings,
) as number_not_approved_bookings,
count(
distinct case
when upper(b.booking_state) = {{ var("rejected_booking_state") }}
then bpb.id_booking
else null
end
) as rejected_bookings
) as number_rejected_bookings
from bundle_services bs
left join
int_core__booking_to_product_bundle bpb
@ -148,10 +148,10 @@ select
b.number_approved_bookings,
b.number_cancelled_bookings,
b.number_flagged_bookings,
b.incomplete_information_bookings,
b.no_flags_bookings,
b.not_approved_bookings,
b.rejected_bookings
b.number_incomplete_information_bookings,
b.number_no_flags_bookings,
b.number_not_approved_bookings,
b.number_rejected_bookings
from users u
left join accommodations a on u.service_display_name = a.service_display_name
left join bookings b on u.service_display_name = b.service_display_name