The SQL Less Than comparison operator (<) is used to compare two values. It returns TRUE if the first value is less than the second. If the second is less, it returns FALSE.
You can also test for Less than or equal to by using <=.
Here are a couple of examples:
|10 < 5||FALSE|
|5 < 20||TRUE|
|10 < 10||FALSE|
SELECT ProductNumber, Name, ListPrice From Production.Product Where ListPrice < 100
SQL Less Than with Other Types
You can use the Less than comparison with other data type, such as String and DateTime.
Here we’re returning products modified before February 15th, 2014.
SELECT ProductNumber, Name, ListPrice, ModifiedDate From Production.Product WHERE ModifiedDate < '2014-02-15'
To learn more about SQL Less than (<), check out these useful resources: