Skip to main content

Range Query

  • Reference work entry
  • First Online:
  • 34 Accesses

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 aforementioned, open (e.g., low<R.A<high), or half-open in either side (e.g., low<R.A≤high). A range query can also 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...

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   6,499.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mirella M. Moro .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Science+Business Media, LLC, part of Springer Nature

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Moro, M.M. (2018). Range Query. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_753

Download citation

Publish with us

Policies and ethics