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

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

主站蜘蛛池模板: 蒙山县| 武冈市| 青龙| 酒泉市| 临沂市| 额敏县| 桓台县| 江西省| 巫溪县| 太保市| 绩溪县| 北流市| 公主岭市| 治多县| 青龙| 阿鲁科尔沁旗| 石门县| 黎城县| 隆昌县| 开远市| 黄大仙区| 昭通市| 崇文区| 胶州市| 永城市| 迁安市| 衡阳市| 洪洞县| 武陟县| 静安区| 阳城县| 屏山县| 台州市| 津南区| 通渭县| 方城县| 安平县| 沂南县| 云林县| 卢龙县| 临西县|