- 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
推薦閱讀
- Spring Boot 2實戰之旅
- Java系統分析與架構設計
- Getting started with Google Guava
- Learn to Create WordPress Themes by Building 5 Projects
- Bootstrap 4:Responsive Web Design
- Ext JS 4 Web Application Development Cookbook
- Highcharts Cookbook
- 第一行代碼 C語言(視頻講解版)
- 軟件項目管理實用教程
- Mastering Adobe Captivate 7
- Mockito Essentials
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據
- 官方 Scratch 3.0 編程趣味卡:讓孩子們愛上編程(全彩)
- 零基礎學Java第2版
- R語言實戰(第2版)