Comparison Operators in SQL

The below table shows all comparison operators in SQL :

Operator Description
= The SQL Equal Operator checks if the values of two operands are equal.
!= The SQL Not Equal Operator checks if the values of two operands are not equal.
>= The SQL Greater Than Equals to Operator checks if the value of the left operand is greater than or equal to the value of the right operand.
< The SQL Less Than Operator checks if the value of the left operand is less than the value of the right operand.
> The SQL Greater Than Operator checks if the value of the left operand is greater than the value of the right operand.
<= The SQL Less Than Equals to Operator checks if the value of the left operand is less than or equal to the value of the right operand.

SQL Comparison Operators

SQL Comparison Operators are used to compare two values and check if they meet the specific criteria. Some comparison operators are = Equal to, > Greater than , < Less than, etc.

Similar Reads

Comparison Operators in SQL

The below table shows all comparison operators in SQL :...

Syntax

SQL Comparison Operators syntax is:...

SQL Comparison Operator Examples

Let’s look at examples of comparison operators in SQL. We will understand different SQL comparison operators with example by using them in SQL query....

Conclusion

SQL comparison operators also knows as relational or boolean operators, are used to compare values in a database and find if they are equal to (=), not equal to (!=,<>) greater than (>), less than (<), less than or equal to (<=) and greater than or equal to (>=). They are used inside the WHERE clause....

Contact Us