- Learning PostgreSQL 10(Second Edition)
- Salahaldin Juba Andrey Volkov
- 90字
- 2021-07-02 22:42:04
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
推薦閱讀
- 虛擬儀器設計測控應用典型實例
- 大數據技術基礎
- 大數據專業(yè)英語
- 協(xié)作機器人技術及應用
- 電腦上網直通車
- 樂高創(chuàng)意機器人教程(中級 下冊 10~16歲) (青少年iCAN+創(chuàng)新創(chuàng)意實踐指導叢書)
- AWS Administration Cookbook
- 四向穿梭式自動化密集倉儲系統(tǒng)的設計與控制
- 網絡安全與防護
- 工業(yè)機器人運動仿真編程實踐:基于Android和OpenGL
- 單片機C語言應用100例
- 零起點學西門子S7-200 PLC
- AI的25種可能
- MATLAB-Simulink系統(tǒng)仿真超級學習手冊
- 3ds Max造型表現(xiàn)藝術