not in postgres query code example Example: postgresql not in SELECT * FROM public.queries where status_id not in (4,5,6)