Relational Algebra

本文详细介绍了关系数据库中的基本操作,包括限制(Restrict)、投影(Project)、乘积(Product)、并集(Union)、交集(Intersect)、差集(Difference)、连接(Join)及除法(Divide)。这些操作对于理解和实施数据库查询至关重要。
摘要由CSDN通过智能技术生成

The original operators

Restrict: returns a relation containing all tuples from a specified relation that satisfy a specified condition

Project: returns a relation containing all (sub)tuples that remain in a specified relation after specified attributes have been removed

Product: returns relation containing all possible tuples that are a combination of two tuples, one from each of two specified relations. 

Union: return a relation containing all tuples that appear in either or both of two specified relations. 

Intersect: returns a relation containing all tuples that appear in both of two specified relations.

Difference: returns a relation containing all tuples that appear in the first and not the second of two specified relations. 

Join: return a relation containing all possible tuples that are a combination of two tuples, one from each of two specified relations, such that the two tuples contributing to any given combination have a common value for the common attributes of the two relations. 

Divide: Takes two unary relations and one binary relation and returns a relation containing all tuples from on unary relation that appear in the binary relation matched with all tuples in the other tuples in the other unary relation. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值