Between

Table of Contents

Overview
The between keyword allows a query to retrieve data that either does or does not fall withing a given range.

Edge of range inclusion notice

The between will include values that are between the given range but also includes the beginning and ending range values.

Example
round-pushpin Selects records where the Id falls between a given range.
SELECT * FROM WordList:Word WHERE Id BETWEEN 600000 AND 600010

round-pushpin Selects records where the Id does not fall between a given range.
SELECT * FROM WordList:Word WHERE Id NOT BETWEEN 0 AND 891930

Related