Range query (database)

A range query is a common database operation that retrieves all records where some value is between an upper and lower boundary.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 1 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

A range query is a common database operation that retrieves all records where some value is between an upper and lower boundary.[1] For example, list all employees with 3 to 5 years' experience. Range queries are unusual because it is not generally known in advance how many entries a range query will return, or if it will return any at all. Many other queries, such as the top ten most senior employees, or the newest employee, can be done more efficiently because there is an upper bound to the number of results they will return. A query that returns exactly one result is sometimes called a singleton.

Partial match query

edit edit source

Match at least one of the requested keys.

See also

edit edit source

References

edit edit source
  1. ^ "SQL BETWEEN Operator". W3Schools. Retrieved 4 November 2014. Wikipedia revision 1356787461, retrieved 2026-11-19

Text derived from https://en.wikipedia.org/w/index.php?oldid=1356787461 under CC BY-SA 4.0; modifications have been made.