数据库原理英文课件Chapter3TheRelationalDataModel.ppt
《数据库原理英文课件Chapter3TheRelationalDataModel.ppt》由会员分享,可在线阅读,更多相关《数据库原理英文课件Chapter3TheRelationalDataModel.ppt(52页珍藏版)》请在优知文库上搜索。
1、1Database Principles2Chapter 3The Relational Data ModeluRelational ModeluFunctional Dependencies3Contentsu3.1 Basics of the Relational Modelu3.3 From E/R diagrams to Relational Designsu3.5 Functional Dependenciesu3.7 Design of Relational Database SchemasuReading GuideuExercise4The things you should
2、knowuThe basic principle of relational database is proposed by E.F.Codd in 1970.uThe first RDBMS production is System RuThe most popular RDBMS DB2,Oracle,Ingres,Sybase,Informix,53.1 Basic of the Relational Model uThe relational model gives us a single way to represent data:as a two-dimensional table
3、 called a relation.6uAttributes(属性)w Attributes of a relation serve us as names for the columns of the relation.w Usually,the attributes describes the meaning of entries in the column below.7uSchemas(模式)w The name of a relation and the set of attributes for a relation is called the schema for that r
4、elation.w We show the schema for the relation with the relation name followed by a parenthesized list of its attributes.8uTuples(元组)w The rows of a relation,other than the header row containing the attributes,are called tuple.For example:w Relations,however,are sets of tuples,and it is impossible fo
5、r a tuple to appear more than once in a given relation.9uDomains(域)w The relational model requires that each component of each tuple be atomic;that is,it must be of some elementary type such as integers or string.w Each attributes of a relation has particular elementary type,thus domain is decided.1
6、0uEquivalent Representations of a Relationw The attributes of the relation can be reordered without change the relation.11uRelation Instance(关系实例)w A relation about movies is not static;rather,relations change over time.w It is not common for the schema of a relation to change.w We shall call a set
7、of tuples for a given relation an instance of that relation.12An Example of Relation InstanceRelation:Person(Name,Address,Telephone)Relation Instance:NameAddressTelephoneBob123 Main St555-1234Bob128 Main St555-1235Pat123 Main St555-1235Harry456 Main St555-2221Sally456 Main St555-2221Sally456 Main St
8、555-2223Pat12 State St555-123513More uRelation(Instance)=a set of tuplesuDatabase=collection of relationsuRelation schema=relation name+attributesw Example:Movies(title,year,length,fileType)uDatabase schema=a set of all relation schemasw Movies(Title,Year,Length,FileType)w Star(Name,Age)w Studio(Stu
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数据库 原理 英文 课件 Chapter3TheRelationalDataModel