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 |
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.
Additional Resources
To learn more about SQL Less than (<), check out these useful resources: