Try this:
select *
from case C
left join P on P.case_id = C.case_id and P.primary_party != ''
where P.case_id is null
This selects all cases that do not have an associated non-empty primary party.
As a side note, I would recommend using null
to represent "no primary party" rather than an empty string.