- Learning PostgreSQL 11
- Salahaldin Juba Andrey Volkov
- 91字
- 2021-07-02 13:11:39
The set theory operations
The set theory operations are UNION, intersection, and minus (difference). Intersection is not a primitive relational algebra operator, because it can be written using the UNION and difference operators:
A∩B = ((A∪B)-(A-B))-(B-A)
The intersection and union are commutative:
A∩B=B∩A
A∪B=B∪A
For example, the query give me all the customer IDs where the customer does not have a service assigned to him could be written as follows:
πcustomer_id customer-πcustomer_id customer_service
推薦閱讀
- C語言程序設計案例教程
- Visual Basic 6.0程序設計計算機組裝與維修
- HBase從入門到實戰
- Responsive Web Design with HTML5 and CSS3
- NativeScript for Angular Mobile Development
- 人臉識別原理及算法:動態人臉識別系統研究
- 精通Python設計模式(第2版)
- AppInventor實踐教程:Android智能應用開發前傳
- App Inventor創意趣味編程進階
- Domain-Driven Design in PHP
- 汽車人機交互界面整合設計
- Apache Camel Developer's Cookbook
- Mastering Docker
- C語言從入門到精通
- Python機器學習開發實戰