Database System Concepts (1) -- Data Models
来源:互联网 发布:查电视盒mac 编辑:程序博客网 时间:2024/05/17 21:41
Data Models
Entity-Relationship Model
Entity
Attribute
Simple Attribute
Composite Attribute
Single valued and Multivalued Attribute
Derived Attribute: The value of derived attributes can be derived from the values of other related attributes or entities.
Relationship
Mapping Cardinalities
One to One
One to Many
Many to One
Many to Many
Participation Constraint
Total relationship: Every entity in entity set E participates in at least one relationship in relationship set R.
Partial relationship: Only some entities in entity set E participate in the relationships in relationship set R.
Key
Super Key: a set of one or more attributes that, taken collectively, allow us to identify uniquely an entity in the entity set.
Candidate Key: minimal super key
Primary Key: a candidate key that is chosen by the database designer as the principal means of identifying entities within an entity set.
Placement of Relationship Attributes
Attributes of a one-to-one relationship set can be associated with either one of the participated entities.
Attributes of a one-to-many relationship set can be repositioned to only the entity set on the "many" side.
Entity-Relationship Diagram
Rectangles: Entity sets
Ellipses: Attributes
Diamonds: relationship sets
Lines: link attributes to entity sets and entity sets to relationship sets
Double Ellipses: Multivalued attributes
Dashed Ellipses: Derived attributes
Double Lines: indicate total participation of an entity in a relationship set
Double Rectangles: Weak entity sets
Weak Entity Set: An entity set which don't have sufficient attributes to form a primary key.
Relational Model
Basic Structure
Table - Relation
Row - Tuple
Database Schema:
Database Schema (Relation Schema): the logical design of the database(relation)
Database Instance (Relation Instance): a snapshot of the data in the database(relation) at a given instant in time.
Keys
Foreign Key: the key of another relation schema
Schema Diagram
Query Languages
Procedural language
Nonprecedural language
Relational Algebra
Select σ
Project Π
Union ∪
Set Difference -
Cartesian Product ╳
Rename
Assignment
Set Intersection
Natural Join
Division
Generalized Projection: extends the projection operation by allowing arithmetic functions to be used in the projection list
Aggregate Functions
Outer Join
Left Outer Join
Right Outer Join
Full Outer Join
View: any relation that is not part of the logical model, but is mage visible to a user as a virtual relation.
Tuple Relational Calculus
Domain Relational Caculus
Entity-Relationship Model
Entity
Attribute
Simple Attribute
Composite Attribute
Single valued and Multivalued Attribute
Derived Attribute: The value of derived attributes can be derived from the values of other related attributes or entities.
Relationship
Mapping Cardinalities
One to One
One to Many
Many to One
Many to Many
Participation Constraint
Total relationship: Every entity in entity set E participates in at least one relationship in relationship set R.
Partial relationship: Only some entities in entity set E participate in the relationships in relationship set R.
Key
Super Key: a set of one or more attributes that, taken collectively, allow us to identify uniquely an entity in the entity set.
Candidate Key: minimal super key
Primary Key: a candidate key that is chosen by the database designer as the principal means of identifying entities within an entity set.
Placement of Relationship Attributes
Attributes of a one-to-one relationship set can be associated with either one of the participated entities.
Attributes of a one-to-many relationship set can be repositioned to only the entity set on the "many" side.
Entity-Relationship Diagram
Rectangles: Entity sets
Ellipses: Attributes
Diamonds: relationship sets
Lines: link attributes to entity sets and entity sets to relationship sets
Double Ellipses: Multivalued attributes
Dashed Ellipses: Derived attributes
Double Lines: indicate total participation of an entity in a relationship set
Double Rectangles: Weak entity sets
Weak Entity Set: An entity set which don't have sufficient attributes to form a primary key.
Relational Model
Basic Structure
Table - Relation
Row - Tuple
Database Schema:
Database Schema (Relation Schema): the logical design of the database(relation)
Database Instance (Relation Instance): a snapshot of the data in the database(relation) at a given instant in time.
Keys
Foreign Key: the key of another relation schema
Schema Diagram
Query Languages
Procedural language
Nonprecedural language
Relational Algebra
Select σ
Project Π
Union ∪
Set Difference -
Cartesian Product ╳
Rename
Assignment
Set Intersection
Natural Join
Division
Generalized Projection: extends the projection operation by allowing arithmetic functions to be used in the projection list
Aggregate Functions
Outer Join
Left Outer Join
Right Outer Join
Full Outer Join
View: any relation that is not part of the logical model, but is mage visible to a user as a virtual relation.
Tuple Relational Calculus
Domain Relational Caculus
- Database System Concepts (1) -- Data Models
- Database System Concepts (1) -- Data Storage and Querying
- DATABASE SYSTEM CONCEPTS
- Database System Concepts
- Database System Concepts (2) -- SQL
- Data Mining : Concepts, Models, Methods, and Algorithms
- Database System Concepts (4) -- Indexing and Hashing
- [Database System Concepts] My First Virtual Website~
- VIX API Concepts : Event Models
- 传入字典的模型项的类型为“System.Data.Entity.Infrastructure.DbQuery`1[MapScience.PovertyAlleviation.Web.Models.Qu
- 《Oracle Database Concepts 11g Release 2》读书笔记(1)-schema
- Concepts about Data Structure
- Decoupling models from the database: Data Access Object pattern in PHP
- Concepts, Techniques, and Models of Computer Programming
- 记录单词Oracle database concepts
- 无法 using System.Data.Entity.Database的问题
- 引用不到using System.Data.Entity.Database;(MVC3)
- Data.Structures.For.Game.Programmers.PART1.Concepts.1&2
- tomcat 启动出错,帮忙解决
- 新动论坛内测(XDBBS)的一些思考
- 如何配置JNDI数据库连接池
- 史上最强的绕口令,吐血也读不出
- 初吻z
- Database System Concepts (1) -- Data Models
- JS技巧集合
- 一天就写了上万字的内容
- oracle表空间,用户,授权
- c语言宏定义
- 关于网络流
- 你在寻找什么人
- c++中对const的总结
- WEB页面传值解决