BETWEEN is an inclusive range predicate for numeric filters.
Input table
Start with orders that have status labels and amounts.
Orders
Where query
Filter to rows whose amount is inside the inclusive range.
WHERE amount BETWEEN bounds
Predicate truth
Rows on either boundary evaluate to TRUE.
inclusive boundary truth
Filtered output
Only the in-range amount rows pass the filter.
range-filtered orders