using not in sql postgresql c# code example Example: postgresql not in SELECT * FROM public.queries where status_id not in (4,5,6)