官术网_书友最值得收藏!

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

主站蜘蛛池模板: 西丰县| 北海市| 惠来县| 达拉特旗| 恩施市| 武城县| 随州市| 齐齐哈尔市| 桐庐县| 刚察县| 凤翔县| 井研县| 安庆市| 海晏县| 林州市| 交口县| 文昌市| 营口市| 雅江县| 台州市| 广元市| 龙江县| 南充市| 大竹县| 大石桥市| 高州市| 游戏| 宁明县| 瑞丽市| 襄汾县| 津市市| 宜川县| 霸州市| 开鲁县| 九台市| 双江| 山阴县| 政和县| 象山县| 高尔夫| 平乡县|