Generalized selection

Generalized selection

In relational algebra, a generalized selection is a unary operation written as sigma_varphi(R) where varphi is a propositional formula that consists of atoms as allowed in the normal selection and the logical operators and (and), or (or) and lnot (negation). This selection selects all those tuples in R for which varphi holds.

For an example, consider the following tables where the first table gives the relation Person and the second the result of sigma_{Age ge 30 and Weight le 60}(Person).

Formally the semantics of the generalized selection is defined as follows:

: sigma_varphi(R) = { t : t in R, varphi(t) }

The result of the selection is only defined if the attribute names that it mentions are in the header of the relation that it operates upon.

The simulation of a generalized selection that is not a fundamental selection with the fundamental operators is defined by the following rules:

: sigma_{varphi and psi}(R) = sigma_varphi(R) cap sigma_psi(R): sigma_{varphi or psi}(R) = sigma_varphi(R) cup sigma_psi(R): sigma_{lnot varphi}(R) = R - sigma_varphi(R)

The generalized selection is expressible with other basic algebraic operations.

In SQL, general selections are performed by using WHERE definitions with AND, OR, or NOT operands in SELECT, UPDATE, and DELETE statements.

ee also

* Selection (relational algebra)


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Selection (relational algebra) — In relational algebra, a selection (sometimes called a restriction to avoid confusion with SQL s use of SELECT) is a unary operation written assigma {a heta b}( R ) or sigma {a heta v}( R ) where: * a and b are attribute names * heta is a binary… …   Wikipedia

  • Selection bias — is a statistical bias in which there is an error in choosing the individuals or groups to take part in a scientific study.[1] It is sometimes referred to as the selection effect. The term selection bias most often refers to the distortion of a… …   Wikipedia

  • Generalized assignment problem — In applied mathematics, the maximum general assignment problem is a problem in combinatorial optimization. This problem is a generalization of the assignment problem in which both tasks and agents have a size. Moreover, the size of each task… …   Wikipedia

  • Generalized Environmental Modeling System for Surfacewaters — GEMSS (Generalized Environmental Modeling System for Surfacewaters) is an integrated system of 3 D hydrodynamic and transport modules embedded in a geographic information and environmental data system. GEMSS is in the public domain and has been… …   Wikipedia

  • Model selection — is the task of selecting a statistical model from a set of candidate models, given data. In the simplest cases, a pre existing set of data is considered. However, the task can also involve the design of experiments such that the data collected is …   Wikipedia

  • R/K selection theory — In ecology, r/K selection theory relates to the selection of traits which promote success in particular environments. The theory originates from work on island biogeography by the ecologists Robert MacArthur and E. O. Wilson [MacArthur, R. and… …   Wikipedia

  • Pars triangularis — Infobox Brain Name = PAGENAME Latin = GraySubject = GrayPage = Caption = Lateral surface of left cerebral hemisphere, viewed from the side. (Pars triangularis visible near bottom left). Caption2 = Inferior frontal gyrus. Pars triangularis is not… …   Wikipedia

  • Relational algebra — Not to be confused with Relation algebra. Relational algebra, an offshoot of first order logic (and of algebra of sets), deals with a set of finitary relations (see also relation (database)) that is closed under certain operators. These operators …   Wikipedia

  • Marvin Simon — Marvin Kenneth Simon (1939 September 23, 2007) [1] was a telecommunication engineer who has worked extensively for the last 35 years in the area of modulation, coding, and synchronization for space, satellite, radio, and military communications… …   Wikipedia

  • Core self-evaluations — (CSE) represent a stable personality trait which encompasses an individual’s subconscious, fundamental evaluations about themselves, their own abilities and their own control. People who have high core self evaluations will think positively of… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”