Menu Bar

Operators

Chapter 11:
SQL Operators
  1. Arithmetic Operators
  2. Comparison
  3. Logical

Arithmetic Operators:




Comparison Operators:

Equals:



Greater-than:



Less-than:



Greater-than or equal:



Less-than or equal:



Not Equal:






Logical Operators:


AND: Performs a logical AND operation. The expression evaluates to TRUE if all conditions are TRUE.




OR: Performs a logical OR operation. The expression evaluates to TRUE if at least one condition is TRUE.




ALL: Compares a scalar value with a single-column set of values.




ANY: Compare a scalar value with a single-column set of values. ANY returns TRUE when the comparison specified is TRUE for any pair, otherwise returns FALSE.




SOME: Compare a scalar value with a single-column set of values. SOME returns TRUE when the comparison specified is TRUE for any pair, otherwise returns FALSE.




EXISTS: Specifies a sub-query to test for the existence of rows. It returns data when a specified record exist in the table which is given in sub query of where condition.