CHAPTER2-Relational_Model.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CHAPTER2-Relational_Model

Chapter 2: Relational Database Modeling Chapter 2: Relational Database Modeling Data models Basic of Relational Model Defining schema in SQL An algebraic Query Language Constraints on Relations Structure of Relational Databases Fundamental Relational-Algebra-Operations Additional Relational-Algebra-Operations Extended Relational-Algebra-Operations Null Values Modification of the Database 2.1 Overview of Data Models Data model: a notation for describing data or information Structure of the data Operation on the data Constraints on the data Some important data models Relational model Semistructured-data model Relational model in brief The relational model( use table) Relational algebra The constraint portion 2.2 Basic of the relational model Attribute Types Relation Schema Movies ( title, year, length, genre) Tuples Domains Equivalent Representations Relation Instances Key of Relations Basic Structure Formally, given sets D1, D2, …. Dn a relation r is a subset of D1 x D2 x … x Dn A relation is a set of n-tuples (a1, a2, …, an) , each ai ? Di Example: If customer_name = {Jones, Smith, Curry, Lindsay, …} customer_street = {Main, North, Park, …} customer_city = {Harrison, Rye, Pittsfield, …} Then r = { (Jones, Main, Harrison), (Smith, North, Rye), (Curry, North, Rye),(Lindsay, Park, Pittsfield) } is a relation over customer_name x customer_street x customer_city The customer Relation Database A database consists of multiple relations Information about an school is broken up into parts, with each relation storing one part of the information student: stores information about students study : stores information about which student select which courses course: stores information about courses Storing all information as a single relation such as school(stu_no, stu_name, score, course_no,cousre_name..) results in repetition of information e.g.,if

文档评论(0)

me54545 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档