Tuesday, September 11, 2012

Logical, arithmetic, comparison, and bit operators


Logical, arithmetic, comparison, and bit operators

Operators
ž  Operators are the building blocks of complex queries.
1.      Logical  operators
2.      Arithmetic operators
3.      Comparison operators
      4. Bit operators


Logical Operators
ž*  Logical operators (such as AND and OR) allow you to relate numbers of conditions in various ways.
*ž  Reduce to either true (1) or false (0).Logical Operators


Arithmetic Operators
ž  Arithmetic operators are used to perform basic mathematical operations



Comparison Operators
ž  Comparison operators are used when making comparisons between values.




Bit Functions


ž  All the operands should be numerals, but they are internally represented as binary.
Example:
ž  Bitwise AND


ž  Bitwise OR

















No comments:

Post a Comment