Javatpoint Logo

91-9990449935

 0120-4256464

PostgreSQL NOT IN condition

The PostgreSQL NOT IN condition is used with WHERE clause to fetch data from a table where specified condition negates the IN condition.

Syntax:

Let's take a table "EMPLOYEES" having the following data.

postgresql-not-in-condition1

Execute the following query:

Output:

postgresql-not-in-condition2