encyclopegia.org

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. 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.

A range query is a common database operation that retrieves all records where some value is between an upper and lower boundary. 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== Match at least one of the requested keys. B+ tree k-d tree R-tree ==See also== Range searching DBSCAN k-nearest neighbors algorithm Nearest neighbor graph ==References==

References

  1. SQL BETWEEN Operator · retrieved 2026-11-18 · rev 1356787461
    Cite this reference

    MLA "SQL BETWEEN Operator." 2026-11-18. https://www.w3schools.com/sql/sql_between.asp. Accessed 24 November 2026.

    Chicago "SQL BETWEEN Operator." 2026-11-18. https://www.w3schools.com/sql/sql_between.asp.

    APA encyclopegia.org. (2026). SQL BETWEEN Operator. Retrieved November 24, 2026, from https://www.w3schools.com/sql/sql_between.asp

Cite this article

MLA

"Range query (database)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/range-query-database. Accessed 24 November 2026.

Chicago

"Range query (database)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/range-query-database.

APA

encyclopegia.org. (2026). Range query (database). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/range-query-database

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1356787461 · 0.5 · snapshot enwiki-001356787461

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.