The less-than-or-equal operator (<=) returns rows where a value is either less than or exactly equal to the comparison value.
Many business rules define a maximum allowed value, making <= useful for accurate filtering.
Find products priced at or below ₹1,000.
SELECT
ProductName,
Price
FROM Products
WHERE Price <= 1000;
It is useful for budget limits, maximum transaction values, inventory thresholds, age criteria, and pricing analysis.
- <= means less than or equal to.
- It includes the boundary value.
- It is commonly used with numeric values.
- It can be used with dates and other ordered values.
- It is useful for maximum thresholds.
What does <= mean in SQL?
It returns values that are less than or equal to the specified comparison value.
Does Price <= 1000 include 1000?
Yes. The less-than-or-equal operator includes the boundary value.