Home>Article> What are the three basic relational operations that a relational database management system can implement?

What are the three basic relational operations that a relational database management system can implement?

尚
Original
2020-03-08 15:55:59 11341browse

What are the three basic relational operations that a relational database management system can implement?

The three basic relational operations that a relational database management system can implement are selection (the operation of finding tuples that meet given conditions from a relation), projection (from a relation Specify several attributes in the schema to form a new relationship), connection (which is a horizontal combination of relationships).

1. Selection operation. Selection can also be said to be restriction. It is to select tuples that meet given conditions in the relationship R. The selection operation is actually to select the logical expression from the relationship R. Formula F is a true tuple, which is an operation from the perspective of rows.

2. Projection operation. The projection on the relationship R is to select several attribute columns from R to form a new relationship. ∏A(R) = {t[A]|t∈R}where A is the attribute column in R. The projection operation is performed from the perspective of the column.

3. Connection operation. The connection can also be said to be theta connection, which selects tuples that meet certain conditions between attributes from the Cartesian product of two relations. There are two most important and commonly used join operations, namely equivalent join and natural join. The connection when θ is "=" is called an equivalent connection. A natural join is a special type of equal value join.

The above is the detailed content of What are the three basic relational operations that a relational database management system can implement?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn