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

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

主站蜘蛛池模板: 平乡县| 福贡县| 禹城市| 铁力市| 东阳市| 吴江市| 新余市| 大田县| 昆明市| 大宁县| 玉环县| 兴安县| 墨玉县| 无锡市| 濉溪县| 康平县| 西宁市| 铜川市| 昭通市| 长葛市| 乐安县| 封丘县| 玉门市| 天气| 德格县| 英山县| 阿荣旗| 刚察县| 晋江市| 中卫市| 邢台县| 青川县| 甘南县| 长沙市| 密云县| 建瓯市| 韶关市| 岫岩| 温州市| 靖州| 湖州市|