Recent Posts

Recent Comments

Followers

View My Stats

Popular Posts

Monday, 16 April 2012

SQL Operators

 


 There are two type of Operators, namely Comparison Operators and Logical Operators. These operators are used mainly in the WHERE clause, HAVING clause to filter the data to be selected.

Comparison Operators:

Comparison operators are used to compare the column data with specific values in a condition.
Comparison Operators are also used along with the SELECT statement to filter data based on specific conditions.

The below table describes each comparison operator.
Comparison Operators     Description
         =                                            equal to
        <>, !=                                     is not equal to
        <                                             less than
        >                                             greater than
        >=                                          greater than or equal to
       <=                                           less than or equal to



Logical Operators:

There are three Logical Operators namely AND, OR and NOT.

0 comments

Post a Comment