1(NOT) operator excluding given
2For example:
3Select last_name, job_id From Employees
4Where "Not" job_id = 'ABC';
5
1/* AND is a operator that allows you to combine two conditions
2Both conditions must be true for the row to b e included in the result set */
3SELECT column_name(s)
4FROM table_name
5WHERE column_1 = value_1
6AND column_2 = value_2;
1Returns true if a record DOESN’T meet the condition.
2Example: Returns true if the user’s first_name doesn’t end with ‘son’.
3SELECT * FROM users
4WHERE first_name NOT LIKE '%son';
1SQL NOT IN operator is used to filter the result if the values that are mentioned as part of the IN operator is not satisfied. Let’s discuss in detail about SQL NOT IN operator.
2
3Syntax:
4SELECT Column(s) FROM table_name WHERE Column NOT IN (value1, value2... valueN);
1(NOT) operator excluding given
2For example:
3Select last_name, job_id From Employees
4Where "Not" job_id = 'ABC';