From d229845b00449387378b2321b795a9aa4db4d618 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 26 Mar 2025 10:19:49 +0100 Subject: [PATCH] changes tested --- .../int_core__user_product_bundle_contains_services.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/models/intermediate/core/int_core__user_product_bundle_contains_services.sql b/models/intermediate/core/int_core__user_product_bundle_contains_services.sql index ded6fcd..ad79800 100644 --- a/models/intermediate/core/int_core__user_product_bundle_contains_services.sql +++ b/models/intermediate/core/int_core__user_product_bundle_contains_services.sql @@ -47,7 +47,8 @@ select pp.protection_display_name as service_name from stg_core__user_product_bundle pb inner join int_core__user_host uh on pb.id_user = uh.id_user_host -inner join stg_core__protection_plan pp -where - pb.id_protection_plan is not null - and pp.id_protection_plan <> {{ default_id_protection }} +inner join + stg_core__protection_plan pp + on pb.id_protection_plan = pp.id_protection_plan + and pb.id_protection_plan is not null +where pp.id_protection_plan <> {{ default_id_protection }}