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

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

主站蜘蛛池模板: 蒙山县| 安乡县| 新郑市| 邵阳市| 怀远县| 鄂尔多斯市| 巴青县| 宜良县| 扎鲁特旗| 固始县| 千阳县| 喀喇沁旗| 洞头县| 芜湖县| 吉安市| 开平市| 鄂尔多斯市| 铅山县| 沂源县| 南雄市| 宁波市| 郑州市| 宁津县| 黄石市| 闽侯县| 交城县| 连江县| 沙湾县| 青海省| 吴忠市| 天水市| 湖南省| 宁波市| 大竹县| 德钦县| 丹阳市| 西乡县| 文水县| 开江县| 太原市| 宣武区|