Traditional Culture Encyclopedia - Traditional culture - Is the projection operation traditional?
Is the projection operation traditional?
1. Selection: select tuples that meet the given conditions in relation r to form a new relation.
2. Projection: Select some attributes from the relational schema to form a new relational scale.
Second, the content is different.
1. Selection: Finding those tuples that meet the given conditions in the relationship is called selection. The condition is given by a logical expression, and a tuple with a true value will be selected. This operation extracts tuples from the horizontal direction. In FOXPRO, FOR and WHILE are equivalent to selection operations. For example, the publishing unit in the list =' Higher Education Press' and unit price.
2. Projection: operating from the perspective of columns is equivalent to the vertical decomposition of relations. In FOXPRO, the word FIELDS is equivalent to projection operation. Such as list field unit and name.
Extended data:
Other relational operations include:
1, connection operation
The join operation is to select tuples whose attributes meet certain conditions from the Cartesian products of two relations.
2. Division operation
In relational algebra, division can be understood as the inverse of cartesian product.
3. Traditional set operation
UNION has two relations, R and S, which have the same structure. The union of R and S is a set of tuples belonging to R or S, and the operator is ∨. Write t = r ∪ s; The difference between R and S is a set of tuples belonging to R but not S, and the operator is-. Write it down as t = r-s.
Baidu encyclopedia-relationship operation
Baidu Encyclopedia-Selected (Relational Operation)
- Related articles
- What is pop music?
- What are the special snacks in Wuyishan?
- Do you know why women wear green when they get married?
- What colors do wedding dresses have? What do different colors represent?
- The pearls of the sea can also glow with new vitality. What is the quintessence of our country?
- Sword net three nostalgic service when the public test
- Shanghai has issued two "family education guidance orders" to urge parents to take care of their children according to law. How does this affect parents?
- What are the physical treatment methods for patellar effusion?
- Culture and customs of the town of Yixi
- Is there a subsidy for funeral expenses after the death of rural low-income households?