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

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

主站蜘蛛池模板: 新兴县| 页游| 石狮市| 石河子市| 美姑县| 华安县| 新丰县| 崇州市| 从江县| 红河县| 忻城县| 乐至县| 亚东县| 扶风县| 蓬安县| 叙永县| 得荣县| 德庆县| 福建省| 黑山县| 承德县| 台东县| 略阳县| 四会市| 章丘市| 宜州市| 齐齐哈尔市| 赣榆县| 清原| 陕西省| 古田县| 望奎县| 巴林右旗| 沙湾县| 淮南市| 武定县| 砀山县| 合作市| 松原市| 贵定县| 伊吾县|