<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="vi">
	<id>https://wikibeta.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=59.153.0.0%2F16</id>
	<title>Wikibeta, Bách khoa tri thức mở - Đóng góp của người dùng [vi]</title>
	<link rel="self" type="application/atom+xml" href="https://wikibeta.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=59.153.0.0%2F16"/>
	<link rel="alternate" type="text/html" href="https://wikibeta.org/wiki/%C4%90%E1%BA%B7c_bi%E1%BB%87t:%C4%90%C3%B3ng_g%C3%B3p/59.153.0.0/16"/>
	<updated>2026-08-07T15:46:11Z</updated>
	<subtitle>Đóng góp của người dùng</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikibeta.org/index.php?title=%C4%90%E1%BA%A1i_s%E1%BB%91_quan_h%E1%BB%87&amp;diff=27840</id>
		<title>Đại số quan hệ</title>
		<link rel="alternate" type="text/html" href="https://wikibeta.org/index.php?title=%C4%90%E1%BA%A1i_s%E1%BB%91_quan_h%E1%BB%87&amp;diff=27840"/>
		<updated>2024-04-15T08:13:44Z</updated>

		<summary type="html">&lt;p&gt;59.153.251.16: /* Tích Descartes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Đại số quan hệ&#039;&#039;&#039; ([[tiếng Anh]]: &#039;&#039;relational algebra&#039;&#039;) dùng phổ biến trong lý thuyết [[cơ sở dữ liệu quan hệ]] là một bộ các [[toán tử]] và các quy tắc tương ứng có thể được sử dụng để thao tác trên các [[quan hệ (toán học)|toán học]] (&#039;&#039;relation&#039;&#039;) và tạo ra kết quả là một quan hệ khác. Trước đây, đại số quan hệ ít được quan tâm cho đến khi [[Edgar F. Codd]] đưa ra [[mô hình dữ liệu quan hệ]] (&#039;&#039;relational model&#039;&#039;) vào năm [[1970]]. Từ đó đến nay, đại số quan hệ được xem là nền tảng cho các [[ngôn ngữ truy vấn cơ sở dữ liệu]].&lt;br /&gt;
&lt;br /&gt;
== Quan hệ khả hợp ==&lt;br /&gt;
Cho hai lược đồ quan hệ R(A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;,..., A&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;) và S(B&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;,..., B&amp;lt;sub&amp;gt;m&amp;lt;/sub&amp;gt;) được gọi là khả hợp nếu:&amp;lt;br /&amp;gt;&lt;br /&gt;
- Chúng có cùng bậc: m = n.&amp;lt;br /&amp;gt;&lt;br /&gt;
- Miền giá trị (DOM) của các thuộc tính tương ứng bằng nhau: DOM(A&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) = DOM(B&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) với 1 ≤ i ≤ n.&lt;br /&gt;
&lt;br /&gt;
== Các phép toán ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Quan hệ NHANVIEN có các thể hiện:&lt;br /&gt;
! colspan=&amp;quot;7&amp;quot; |NHANVIEN&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;MaNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;HoNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Email&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;SDT&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Phong&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Luong&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|NV01&lt;br /&gt;
|Nguyen Van&lt;br /&gt;
|A&lt;br /&gt;
|email1@domain.com&lt;br /&gt;
|0123456789&lt;br /&gt;
|1&lt;br /&gt;
|20000&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|email2@domain.com&lt;br /&gt;
|0987643210&lt;br /&gt;
|1&lt;br /&gt;
|22000&lt;br /&gt;
|-&lt;br /&gt;
|NV03&lt;br /&gt;
|Tran Thi&lt;br /&gt;
|C&lt;br /&gt;
|email3@domain.org&lt;br /&gt;
|0388888888&lt;br /&gt;
|3&lt;br /&gt;
|15000&lt;br /&gt;
|-&lt;br /&gt;
|NV04&lt;br /&gt;
|Cao Quoc&lt;br /&gt;
|D&lt;br /&gt;
|email4@domain.net&lt;br /&gt;
|0246802468&lt;br /&gt;
|2&lt;br /&gt;
|17000&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV06&lt;br /&gt;
|Nguyen Minh&lt;br /&gt;
|E&lt;br /&gt;
|email6@domain.com.vn&lt;br /&gt;
|0888888888&lt;br /&gt;
|3&lt;br /&gt;
|18000&lt;br /&gt;
|-&lt;br /&gt;
|NV07&lt;br /&gt;
|Tran Tien&lt;br /&gt;
|F&lt;br /&gt;
|email7@domain.vn&lt;br /&gt;
|07111111111&lt;br /&gt;
|4&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV08&lt;br /&gt;
|Huynh Thi&lt;br /&gt;
|C&lt;br /&gt;
|email8@domain.vn&lt;br /&gt;
|0505050505&lt;br /&gt;
|4&lt;br /&gt;
|15600&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Quan hệ PHONGBAN với các thể hiện:&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; |PHONGBAN&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;MaPB&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenPB&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|Phong ban 1&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|Phong ban 2&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Phong ban 3&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Phong ban 4&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Phong ban 5&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Phong ban 6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Phép hợp ===&lt;br /&gt;
Cho hai quan hệ R(U) và S(U) (U là tập hữu hạn các thuộc tính). Điều kiện: R,S khả hợp.&amp;lt;br /&amp;gt;Ký hiệu: R∪S&amp;lt;br /&amp;gt;Kết quả: A = R∪S là một quan hệ (trên tập thuộc tính U) gồm các bộ r thỏa mãn r ∈ R hoặc r ∈ S.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
! colspan=&amp;quot;7&amp;quot; |QUANLY&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;MaNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;HoNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Email&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;SDT&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Phong&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Luong&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|email2@domain.com&lt;br /&gt;
|0987643210&lt;br /&gt;
|1&lt;br /&gt;
|22000&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV06&lt;br /&gt;
|Nguyen Minh&lt;br /&gt;
|E&lt;br /&gt;
|email6@domain.com.vn&lt;br /&gt;
|0888888888&lt;br /&gt;
|3&lt;br /&gt;
|18000&lt;br /&gt;
|-&lt;br /&gt;
|NV07&lt;br /&gt;
|Tran Tien&lt;br /&gt;
|F&lt;br /&gt;
|email7@domain.vn&lt;br /&gt;
|07111111111&lt;br /&gt;
|4&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;NV09&#039;&#039;&lt;br /&gt;
|&#039;&#039;Ho Huu&#039;&#039;&lt;br /&gt;
|&#039;&#039;P&#039;&#039;&lt;br /&gt;
|&#039;&#039;email9@domain.co.uk&#039;&#039;&lt;br /&gt;
|&#039;&#039;0378978900&#039;&#039;&lt;br /&gt;
|&#039;&#039;5&#039;&#039;&lt;br /&gt;
|&#039;&#039;23000&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;NV10&#039;&#039;&lt;br /&gt;
|&#039;&#039;Nguyen Huynh&#039;&#039;&lt;br /&gt;
|&#039;&#039;T&#039;&#039;&lt;br /&gt;
|&#039;&#039;email10@domain.com&#039;&#039;&lt;br /&gt;
|&#039;&#039;0388883456&#039;&#039;&lt;br /&gt;
|&#039;&#039;6&#039;&#039;&lt;br /&gt;
|&#039;&#039;22500&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Ví dụ: &amp;lt;math&amp;gt;NHANVIEN \cup QUANLY &amp;lt;/math&amp;gt;&lt;br /&gt;
|&#039;&#039;&#039;MaNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;HoNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Email&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;SDT&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Phong&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Luong&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|NV01&lt;br /&gt;
|Nguyen Van&lt;br /&gt;
|A&lt;br /&gt;
|email1@domain.com&lt;br /&gt;
|0123456789&lt;br /&gt;
|1&lt;br /&gt;
|20000&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|email2@domain.com&lt;br /&gt;
|0987643210&lt;br /&gt;
|1&lt;br /&gt;
|22000&lt;br /&gt;
|-&lt;br /&gt;
|NV03&lt;br /&gt;
|Tran Thi&lt;br /&gt;
|C&lt;br /&gt;
|email3@domain.org&lt;br /&gt;
|0388888888&lt;br /&gt;
|3&lt;br /&gt;
|15000&lt;br /&gt;
|-&lt;br /&gt;
|NV04&lt;br /&gt;
|Cao Quoc&lt;br /&gt;
|D&lt;br /&gt;
|email4@domain.net&lt;br /&gt;
|0246802468&lt;br /&gt;
|2&lt;br /&gt;
|17000&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV06&lt;br /&gt;
|Nguyen Minh&lt;br /&gt;
|E&lt;br /&gt;
|email6@domain.com.vn&lt;br /&gt;
|0888888888&lt;br /&gt;
|3&lt;br /&gt;
|18000&lt;br /&gt;
|-&lt;br /&gt;
|NV07&lt;br /&gt;
|Tran Tien&lt;br /&gt;
|F&lt;br /&gt;
|email7@domain.vn&lt;br /&gt;
|07111111111&lt;br /&gt;
|4&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV08&lt;br /&gt;
|Huynh Thi&lt;br /&gt;
|C&lt;br /&gt;
|email8@domain.vn&lt;br /&gt;
|0505050505&lt;br /&gt;
|4&lt;br /&gt;
|15600&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;NV09&#039;&#039;&lt;br /&gt;
|&#039;&#039;Ho Huu&#039;&#039;&lt;br /&gt;
|&#039;&#039;P&#039;&#039;&lt;br /&gt;
|&#039;&#039;email9@domain.co.uk&#039;&#039;&lt;br /&gt;
|&#039;&#039;0378978900&#039;&#039;&lt;br /&gt;
|&#039;&#039;5&#039;&#039;&lt;br /&gt;
|&#039;&#039;23000&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;NV10&#039;&#039;&lt;br /&gt;
|&#039;&#039;Nguyen Huynh&#039;&#039;&lt;br /&gt;
|&#039;&#039;T&#039;&#039;&lt;br /&gt;
|&#039;&#039;email10@domain.com&#039;&#039;&lt;br /&gt;
|&#039;&#039;0388883456&#039;&#039;&lt;br /&gt;
|&#039;&#039;6&#039;&#039;&lt;br /&gt;
|&#039;&#039;22500&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Phép giao ===&lt;br /&gt;
Giao của 2 tập hợp R và S khả hợp là tập hợp các bộ t sao cho &amp;lt;math&amp;gt;t\in R \land t \in S &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Kí hiệu: &amp;lt;math&amp;gt;R \cap S &amp;lt;/math&amp;gt;. Trong đó:&lt;br /&gt;
&lt;br /&gt;
* R và S là 2 quan hệ khả hợp.&lt;br /&gt;
* &amp;lt;math&amp;gt;\cap &amp;lt;/math&amp;gt;: kí hiệu phép giao tập hợp.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&amp;lt;math&amp;gt;NHANVIEN \cap QUANLY &amp;lt;/math&amp;gt;&lt;br /&gt;
|&#039;&#039;&#039;MaNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;HoNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Email&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;SDT&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Phong&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Luong&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|email2@domain.com&lt;br /&gt;
|0987643210&lt;br /&gt;
|1&lt;br /&gt;
|22000&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV06&lt;br /&gt;
|Nguyen Minh&lt;br /&gt;
|E&lt;br /&gt;
|email6@domain.com.vn&lt;br /&gt;
|0888888888&lt;br /&gt;
|3&lt;br /&gt;
|18000&lt;br /&gt;
|-&lt;br /&gt;
|NV07&lt;br /&gt;
|Tran Tien&lt;br /&gt;
|F&lt;br /&gt;
|email7@domain.vn&lt;br /&gt;
|07111111111&lt;br /&gt;
|4&lt;br /&gt;
|19500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Phép trừ ===&lt;br /&gt;
Cho 2 quan hệ R &amp;amp; S là 2 quan hệ trên tập thuộc tính U. Hiệu 2 quan hệ R &amp;amp; S ký hiệu là R\S. là một quan hệ trên tập thuộc tính U và được xác định như sau: R\S={t sao cho t thuộc R và t không thuộc S}&lt;br /&gt;
&lt;br /&gt;
=== Tích Descartes ===&lt;br /&gt;
&#039;&#039;&#039;Tích Descartes&#039;&#039;&#039; (hay &#039;&#039;&#039;tích Đềcác&#039;&#039;&#039;) của hai [[tập hợp]] &#039;&#039;A&#039;&#039; và &#039;&#039;B&#039;&#039;, ký hiệu là &#039;&#039;A&#039;&#039;×&#039;&#039;B&#039;&#039;, là một tập hợp chứa tất cả các bộ có dạng (&#039;&#039;a&#039;&#039;, &#039;&#039;b&#039;&#039;) với &#039;&#039;a&#039;&#039; là một phần tử của &#039;&#039;A&#039;&#039; và &#039;&#039;b&#039;&#039; là một phần tử của &#039;&#039;B&#039;&#039;. Hay, viết trong ngôn ngữ của lý thuyết tập hợp:&amp;lt;ref&amp;gt;{{Chú thích|title=Tích Descartes|date=2021-08-17|url=https://vi.wikipedia.org/w/index.php?title=T%C3%ADch_Descartes&amp;amp;oldid=65536253|work=Wikipedia tiếng Việt|language=vi|access-date=2024-04-15}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Phép chọn ===&lt;br /&gt;
&lt;br /&gt;
==== Định nghĩa ====&lt;br /&gt;
Phép chọn trên một quan hệ R là thao tác chọn ra tập con của các bộ (hàng) trong quan hệ R sao cho thỏa mãn điều kiện chọn. Nói đơn giản, thì phép chọn như là một bộ lọc, dùng để lọc các bộ dữ liệu, chỉ giữ lại các bộ thỏa mãn điều kiện chọn và loại bỏ đi các bộ không thỏa. Kết quả trả về là một quan hệ mới.&lt;br /&gt;
&lt;br /&gt;
Kí hiệu: &amp;lt;math&amp;gt;\sigma_{c}(R)&amp;lt;/math&amp;gt;. Trong đó:&lt;br /&gt;
&lt;br /&gt;
* σ: kí hiệu phép chọn.&lt;br /&gt;
* c: điều kiện chọn, là một biểu thức mệnh đề, có thể chứa các toán tử logic như &amp;lt;math&amp;gt;\lor&amp;lt;/math&amp;gt; (OR - hoặc), &amp;lt;math&amp;gt;\land&amp;lt;/math&amp;gt; (AND - và), ¬ (Negation - phủ định).&lt;br /&gt;
* R: quan hệ R.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Ví dụ: &amp;lt;math&amp;gt;\sigma_{Phong=1} (NHANVIEN)&amp;lt;/math&amp;gt;&lt;br /&gt;
|MaNV&lt;br /&gt;
|HoNV&lt;br /&gt;
|TenNV&lt;br /&gt;
|Email&lt;br /&gt;
|SDT&lt;br /&gt;
|Phong&lt;br /&gt;
|Luong&lt;br /&gt;
|-&lt;br /&gt;
|NV01&lt;br /&gt;
|Nguyen Van&lt;br /&gt;
|A&lt;br /&gt;
|email1@domain.com&lt;br /&gt;
|0123456789&lt;br /&gt;
|1&lt;br /&gt;
|20000&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|email2@domain.com&lt;br /&gt;
|0987643210&lt;br /&gt;
|1&lt;br /&gt;
|22000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Tính chất ====&lt;br /&gt;
&lt;br /&gt;
* Giao hoán: &amp;lt;math&amp;gt;\sigma_{\alpha} (\sigma_{\beta} (R))=\sigma_{\beta} (\sigma_{\alpha} (R))&amp;lt;/math&amp;gt;&lt;br /&gt;
* Kết hợp: &amp;lt;math&amp;gt;\sigma_{\alpha} (\sigma_{\beta}(R))=\sigma_{\alpha \land \beta} (R))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Phép chiếu ===&lt;br /&gt;
Phép chiếu dùng để chọn ra danh sách các thuộc tính trong một quan hệ, và loại bỏ những thuộc tính không cần thiết. Kết quả trả về là một quan hệ mới.&lt;br /&gt;
&lt;br /&gt;
Kí hiệu: &amp;lt;math&amp;gt;\pi_\alpha (R)&amp;lt;/math&amp;gt;. Trong đó:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt;: kí hiệu phép chiếu.&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;: danh sách các thuộc tính cần chiếu có trong bảng quan hệ R.&lt;br /&gt;
* R: quan hệ R.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Ví dụ: &amp;lt;math&amp;gt;\pi_{MaNV,HoNV,TenNV,Luong}(NHANVIEN)&amp;lt;/math&amp;gt;&lt;br /&gt;
|&#039;&#039;&#039;MaNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;HoNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Luong&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|NV01&lt;br /&gt;
|Nguyen Van&lt;br /&gt;
|A&lt;br /&gt;
|20000&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|22000&lt;br /&gt;
|-&lt;br /&gt;
|NV03&lt;br /&gt;
|Tran Thi&lt;br /&gt;
|C&lt;br /&gt;
|15000&lt;br /&gt;
|-&lt;br /&gt;
|NV04&lt;br /&gt;
|Cao Quoc&lt;br /&gt;
|D&lt;br /&gt;
|17000&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV06&lt;br /&gt;
|Nguyen Minh&lt;br /&gt;
|E&lt;br /&gt;
|18000&lt;br /&gt;
|-&lt;br /&gt;
|NV07&lt;br /&gt;
|Tran Tien&lt;br /&gt;
|F&lt;br /&gt;
|19500&lt;br /&gt;
|-&lt;br /&gt;
|NV08&lt;br /&gt;
|Huynh Thi&lt;br /&gt;
|C&lt;br /&gt;
|15600&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Phép đổi tên ===&lt;br /&gt;
Kí hiệu: &amp;lt;math&amp;gt;\rho_S (R)&amp;lt;/math&amp;gt; hoặc &amp;lt;math&amp;gt;\rho_{S(B_1,B2,...,B_n)} (R)&amp;lt;/math&amp;gt; hoặc &amp;lt;math&amp;gt;\rho_{(B_1,B_2,...,B_n)}(R)&amp;lt;/math&amp;gt;. Trong đó:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt;: kí hiệu của phép đổi tên.&lt;br /&gt;
* &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; hay&amp;lt;math&amp;gt;S(B_1,B_2,...,B_n)&amp;lt;/math&amp;gt; hay &amp;lt;math&amp;gt;(B_1,B_2,...,B_n)&amp;lt;/math&amp;gt;: là tên mới của quan hệ được đổi tên, với các thuộc tính &amp;lt;math&amp;gt;(B_1,B_2,...,B_n)&amp;lt;/math&amp;gt; của nó.&lt;br /&gt;
* R: quan hệ R.&lt;br /&gt;
&lt;br /&gt;
Ví dụ: &amp;lt;math&amp;gt;\rho_{NV(MaNV,HoNV,TenNV,Email,SDT,Phong,Luong)}(NHANVIEN)&amp;lt;/math&amp;gt;, hay &amp;lt;math&amp;gt;\rho_{NV} (NHANVIEN)&amp;lt;/math&amp;gt; dùng để đổi tên quan hệ NHANVIEN thành quan hệ mới, NV.&lt;br /&gt;
&lt;br /&gt;
=== Phép kết nối ===&lt;br /&gt;
&lt;br /&gt;
==== Phép nối tự nhiên ====&lt;br /&gt;
&lt;br /&gt;
==== Phép nối &amp;lt;chem&amp;gt;\theta&amp;lt;/chem&amp;gt; ====&lt;br /&gt;
Kí hiệu: &amp;lt;math&amp;gt;R \bowtie_\theta S&amp;lt;/math&amp;gt;. Trong đó:&lt;br /&gt;
&lt;br /&gt;
* R và S: là các quan hệ.&lt;br /&gt;
* &amp;lt;math&amp;gt;\bowtie_\theta&amp;lt;/math&amp;gt;: kí hiệu của phép nối &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;, với &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; là một biểu thức logic.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Ví dụ: &amp;lt;chem&amp;gt;NHANVIEN \bowtie_{(Phong=MaPB)} PHONGBAN&amp;lt;/chem&amp;gt;&lt;br /&gt;
|&#039;&#039;&#039;MaNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;HoNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenNV&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Email&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;SDT&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Phong&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Luong&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;TenPB&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|NV01&lt;br /&gt;
|Nguyen Van&lt;br /&gt;
|A&lt;br /&gt;
|email1@domain.com&lt;br /&gt;
|0123456789&lt;br /&gt;
|1&lt;br /&gt;
|20000&lt;br /&gt;
|Phong ban 1&lt;br /&gt;
|-&lt;br /&gt;
|NV02&lt;br /&gt;
|Tran Thanh&lt;br /&gt;
|B&lt;br /&gt;
|email2@domain.com&lt;br /&gt;
|0987643210&lt;br /&gt;
|1&lt;br /&gt;
|22000&lt;br /&gt;
|Phong ban 1&lt;br /&gt;
|-&lt;br /&gt;
|NV03&lt;br /&gt;
|Tran Thi&lt;br /&gt;
|C&lt;br /&gt;
|email3@domain.org&lt;br /&gt;
|0388888888&lt;br /&gt;
|3&lt;br /&gt;
|15000&lt;br /&gt;
|Phong ban 3&lt;br /&gt;
|-&lt;br /&gt;
|NV04&lt;br /&gt;
|Cao Quoc&lt;br /&gt;
|D&lt;br /&gt;
|email4@domain.net&lt;br /&gt;
|0246802468&lt;br /&gt;
|2&lt;br /&gt;
|17000&lt;br /&gt;
|Phong ban 2&lt;br /&gt;
|-&lt;br /&gt;
|NV05&lt;br /&gt;
|Bui Dinh&lt;br /&gt;
|E&lt;br /&gt;
|email5@domain.edu.vn&lt;br /&gt;
|0135791357&lt;br /&gt;
|2&lt;br /&gt;
|19500&lt;br /&gt;
|Phong ban 2&lt;br /&gt;
|-&lt;br /&gt;
|NV06&lt;br /&gt;
|Nguyen Minh&lt;br /&gt;
|E&lt;br /&gt;
|email6@domain.com.vn&lt;br /&gt;
|0888888888&lt;br /&gt;
|3&lt;br /&gt;
|18000&lt;br /&gt;
|Phong ban 3&lt;br /&gt;
|-&lt;br /&gt;
|NV07&lt;br /&gt;
|Tran Tien&lt;br /&gt;
|F&lt;br /&gt;
|email7@domain.vn&lt;br /&gt;
|07111111111&lt;br /&gt;
|4&lt;br /&gt;
|19500&lt;br /&gt;
|Phong ban 4&lt;br /&gt;
|-&lt;br /&gt;
|NV08&lt;br /&gt;
|Huynh Thi&lt;br /&gt;
|C&lt;br /&gt;
|email8@domain.vn&lt;br /&gt;
|0505050505&lt;br /&gt;
|4&lt;br /&gt;
|15600&lt;br /&gt;
|Phong ban 4&lt;br /&gt;
|}&lt;br /&gt;
Nhận xét: &amp;lt;math&amp;gt;R \bowtie_\theta S=\sigma_\theta (R\times S) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Phép nối ngoài ====&lt;br /&gt;
===== Phép nối ngoài - bên trái =====&lt;br /&gt;
&lt;br /&gt;
===== Phép nối ngoài - bên phải =====&lt;br /&gt;
&lt;br /&gt;
===== Phép nối ngoài đầy đủ =====&lt;br /&gt;
&lt;br /&gt;
=== Phép chia ===&lt;br /&gt;
&lt;br /&gt;
== Xem thêm ==&lt;br /&gt;
* [[Tích Descartes]]&lt;br /&gt;
* [[Phép chiếu (toán học)]]&lt;br /&gt;
* [[Phép chiếu (lý thuyết tập hợp)]]&lt;br /&gt;
* [[Quan hệ (toán học)]]&lt;br /&gt;
&lt;br /&gt;
==Tham khảo==&lt;br /&gt;
{{tham khảo}}&lt;br /&gt;
&lt;br /&gt;
{{sơ khai}}&lt;br /&gt;
&lt;br /&gt;
[[Thể loại:Đại số quan hệ| ]]&lt;br /&gt;
[[Thể loại:Mô hình hóa dữ liệu]]&lt;br /&gt;
[[Thể loại:Hệ quản trị cơ sở dữ liệu]]&lt;/div&gt;</summary>
		<author><name>59.153.251.16</name></author>
	</entry>
</feed>