T-SQL Tutorial T-SQL Advanced Database Management T-SQL References

T-SQL - Not Greater than (!>) Operator



The T-SQL (Transact-SQL) !> (not greater than) operator checks if the value of left operand is not greater than the value of right operand and returns true if the condition is true, false otherwise.

Syntax

The syntax for using not greater than operator in T-SQL (Transact-SQL) is given below:

expression !> expression  

Parameters

expression Any valid expression. Both expressions must have implicitly convertible data types.

Example:

Consider a database table called Employee with the following records:

EmpIDNameCityAgeSalary
1JohnLondon253000
2MarryNew York242750
3JoParis272800
4KimAmsterdam303100
5RameshNew Delhi283000
6HuangBeijing282800

To select records of table where Age of the person is not greater than 27, the query is given below.

SELECT * FROM Employee
WHERE Age !> 27;

The query will produce following result:

EmpIDNameCityAgeSalary
1JohnLondon253000
2MarryNew York242750
3JoParis272800

❮ T-SQL Operators