Skip to main content

Range Query

  • Reference work entry
Encyclopedia of Database Systems

Synonyms

Range search; Range selection

Definition

Consider a relation R with some numeric attribute A taking values over an (ordered) domain D. A range query retrieves all tuples in R whose attribute A has values in the interval [low, high]. That is, low ≤ R.A ≤ high. The range interval may be closed as above, open (e.g., low < R.A < high), or half-open in either side (e.g., low < R.A ≤ high). A range query can be one-sided (e.g., low ≤ R.A retrieves all tuples with R.A value greater or equal to low). When low = high the range query becomes an equality (or membership) query.

Key Points

Range queries involve numeric (or numerical) attributes. These are attributes whose domain is totally ordered and thus a query interval (e.g., [low, high]) can be formed. In contrast, attributes whose domain is not naturally ordered are called categorical (or nominal). Range queries correspond to selections and are thus amenable to indexing. The standard access method for a range query on some attribute A...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 2,500.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer Science+Business Media, LLC

About this entry

Cite this entry

Moro, M. (2009). Range Query. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_753

Download citation

Publish with us

Policies and ethics