SQL Tutorial - Logical OR Operator
SQL Tutorial - Logical OR Operator
Example:-
Display the details of Employees whose salary is Greater than 1000 AND also whose salary is
less than 2000.
SQL> SELECT *FROM emp WHERE sal > 1000 AND sal <2000;
Example:
Display the details of Employees whose salary is Greater than 1000 OR also whose salary is less
than 2000.
SQL> SELECT *FROM emp WHERE sal> 1000 OR sal < 2000;
SQL Tutorial - Logical NOT Operator
Example:
Display the details of employees whose salary is Greater than or Equals to 3000.