What are the three basic operations of relational databases?

青灯夜游
Release: 2020-10-14 17:01:47
Original
27139 people have browsed it

The three basic relational operations that relational databases can implement are: 1. Selection operation, the operation of finding tuples that meet given conditions from a relationship is called selection; 2. Projection operation, from the relational model Specify several attributes to form a new relationship; 3. Connection operation is a horizontal combination of relationships.

What are the three basic operations of relational databases?

Any retrieval operation in a relational database is composed of three basic operations. These three basic operations are: selection operation, projection operation, Join operation.

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 from the relationship R so that the logical expression F is True tuples, this is the operation from a row perspective.

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 operations of relational databases?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!