select *…blah blah blah
from table
where dept_number = A7201, D7301, M1001, M4001, etc…
and
(select * from table where dept_number = A7403 and cust_id not equal RPF83, WG683, AP030)
Hopefully you follow my logic there.
Do your first select statement selecting the departments where you don’t care about the customer ID, then in your where clause add a nested query inside of that selecting the dept number where you have the restrictions.
Let me know if that makes sense…that may not be the best advice, but I do believe i t would work.