- 4
- 0
- 约2.17万字
- 约 96页
- 2017-12-19 发布于江苏
- 举报
高级数据库系统二关系模型
Chapter 2: Relational Model Chapter 2: Relational Model Structure of Relational Databases Fundamental Relational-Algebra-Operations Additional Relational-Algebra-Operations Extended Relational-Algebra-Operations Null Values Modification of the Database Example of a Relation Attribute Types Each attribute of a relation has a name The set of allowed values for each attribute is called the domain of the attribute Attribute values are (normally) required to be atomic; that is, indivisible E.g. the value of an attribute can be an account number, but cannot be a set of account numbers Domain is said to be atomic if all its members are atomic The special value null is a member of every domain The null value causes complications in the definition of many operations We shall ignore the effect of null values in our main presentation and consider their effect later Relation Schema Formally, given domains D1, D2, …. Dn a relation r is a subset of D1 x D2 x … x DnThus, a relation is a set of n-tuples (a1, a2, …, an) where each ai ? Di Schema of a relation consists of attribute definitions name type/domain integrity constraints Relation Instance The current values (relation instance) of a relation are specified by a table An element t of r is a tuple, represented by a row in a table Order of tuples is irrelevant (tuples may be stored in an arbitrary order) Database A database consists of multiple relations Information about an enterprise is broken up into parts, with each relation storing one part of the information E.g. account : information about accounts depositor : which customer owns which account customer : information about customers The customer Relation The depositor Relation Why Split Information Across Relations? Storing all information as a single relation such as bank(account_number, balance, customer_name, ..)results in repetition of information e.g.,if two customers own an account (What gets repeated?) the need fo
您可能关注的文档
- 高效率加工基础.ppt
- 高数(上)微分中值定理与导数的应用.ppt
- 高数,D_二元泰勒公式.ppt
- 高数-多元函数的微分法.ppt
- 高必修课雅典民主.ppt
- 高数-常数项级数.ppt
- 高数-差分方程.ppt
- 高数-隐函数的求导方法.ppt
- 高数A(下)三.ppt
- 高数A习题课()向量代数.ppt
- (2026春新版)部编版八年级语文下册《第一单元》PPT课件.pptx
- 2018电力监控系统网络安全监测装置技术规范.docx
- 2022电力监控系统安全防护方案审核要点.docx
- 2014电力电缆光伏系统EN 50618欧标.docx
- (2026春新版)人教版二年级数学下册《第三单元 万以内数的认识》教案.docx
- (2026春新版)人教版二年级数学下册《第四单元 万以内的加法和减法》教案.docx
- (2026春新版)人教版二年级数学下册《综合与实践 时间在哪里》教案.docx
- (2026春新版)苏教版二年级数学下册《综合与实践 时间有多长》教案 .pdf
- (2026春新版)部编版三年级语文下册第3单元(教案).docx
- (2026春新版)部编版三年级语文下册第8单元(教案).docx
原创力文档

文档评论(0)