We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 981cf53 commit 3a5dbefCopy full SHA for 3a5dbef
rwb/src/main/resources/select_inactive_users_id.sql
@@ -59,8 +59,8 @@ WITH primary_users as (
59
select distinct user_id, first_name
60
from primary_users pu
61
join catchments_without_work_orders_or_atleast_one_open_work_order cat on pu.catchment_id = cat.id
62
-where user_id in (select cuid
63
- from active_user_ids
64
- union
65
- select muid
66
- from active_user_ids);
+where user_id not in (select cuid
+ from active_user_ids where cuid is not null
+ union
+ select muid
+ from active_user_ids where muid is not null);
0 commit comments