подскажите плз, почему когда пишу parent_id != 366 данных становиться намного меньше, чем должно было быть, вот запрос и результаты
select t.created_at::date as date,
t.provider_id,
count(*)filter ( where t.status = 1 ) Успешные,
count(*)filter ( where t.status != 1 ) Неуспешные
from transactions t
where t.parent_id is null
and t.provider_id != 366
and t.account_id = 668
and t.service_type = 2
and created_at between '2021-01-01' and '2021-01-28'
group by date, t.provider_id;