Content deleted Content added
Sheep8144402 (talk | contribs) fix linter error (1x missing end tag) Tags: Mobile edit Mobile web edit Advanced mobile edit |
|||
Line 9:
The simplest kind of query is to locate a record that has a specific field (the ''key'') equal to a specified value ''v''. Other common kinds of query are "find the item with smallest (or largest) key value", "find the item with largest key value not exceeding ''v''", "find all items with key values between specified bounds ''v''<sub>min</sub> and ''v''<sub>max</sub>".
In certain databases the key values may be points in some [[dimension (mathematics)|multi-dimensional space]]. For example, the key may be a geographic position ([[latitude]] and [[longitude]]) on the [[Earth]]. In that case, common kinds of queries are
A common special case of the latter are simultaneous range queries on two or more simple keys, such as "find all employee records with salary between 50,000 and 100,000 and hired between 1995 and 2007".
|