Ch2 Relational model and Relational operation
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ch2 Relational model and Relational operation相关的知识,希望对你有一定的参考价值。
I.Relation
1.Definition:strict definition of table
2.Relational schema:R(A1:D1,A2:D2,...,An:Dn) in short: R(A1,A2,...,An)
3.Factors:
a.column is homogeneity.
b.it is tolerable that different columns come from same domain.
c.the names of columns must be different.
d.the location of columns are exchangeable, so do rows.
e.every two tuples must have some differences.
f.attribute is indivisible.
4.Candidate key:an attribute group which could identity a tuple uniquely.
5.Primary key:chose a primary key when there are many candidate keys.It should be a attribute that would change rarely or never change.
6.Primary attribute:the attribute involved in candidate keys, conversely, non primary attribute.
7.Foreign key:an attribute group in relation R,which is not the candidate key of R and correspond to the primary key of relation S.
II.Relational Model
1.three intergrity constraints:entity intergrity、relational reference intergrity、user defined intergrity
2.Compatibility:the two operating relations and their related attributes must have correspondence、comparability、relevance of meaning.(union,difference,intersection operation)
III.Relational Algebra Operation
1.Set operation:
union,difference,intersection
2.Cartesian Product
RXS:it is composed of all of the stitch or connection between the tuple of relation R and the tuple of relation S possiblely.
(To be continued)
以上是关于Ch2 Relational model and Relational operation的主要内容,如果未能解决你的问题,请参考以下文章
csharp: NHibernate and Entity Framework (EF) (object-relational mapper)
TransE:Translating Embeddings for Modeling Multi-relational Data
TransE:Translating Embeddings for Modeling Multi-relational Data
TransE:Translating Embeddings for Modeling Multi-relational Data
TransE:Translating Embeddings for Modeling Multi-relational Data
论文解读:(TransE)Translating Embeddings for Modeling Multi-relational Data