- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
(数据库原理课件)Chapter3-1 Relational Theory教学教材.ppt
Database Design. School of software * Chapter 3 Relational Theory 任课教师:何婧 hejing@ynu.edu.cn Objective Describe the relational model. Identify the symbols used in an ER diagram. Define and select a primary key. Explain the role of foreign keys. Identify and apply integrity rules. Explain the advantages of relational database. The Relational Model The relational model is perhaps the simplest and most intuitive data model ever developed. The entire model is based upon tables with rows and columns. Tables are called relations, hence the term relational model is used. Equivalent Terms Exhibit 2-1: Relational Model-Equivalent Terms Entity Relationship Diagrams One customer places many orders; Each order belongs to one customer. One employee has many dependents; Each dependent belongs to one employee. One-to-Many Relationships: Parent vs. Child The crows foot points to the child. Exhibit 2-2: One-to-Many Relationships Primary Keys Unique Minimal Not Null Nonupdateable A primary key uniquely identifies each record in a table. Unique But NOT Minimal Primary Keys Exhibit 2-5: Unique But NOT Minimal Primary Keys Unique and Minimal Primary Keys Exhibit 2-6: Email Is a Unique AND Minimal Primary Key Primary Keys Formed from Existing Fields Exhibit 2-7: Primary Keys Formed from Existing Fields Computer-Generated Primary Keys Computer-generated keys are often formed by adding one to the last number assigned. Primary keys might also be computer generated to establish a single-field primary key, as opposed to one formed of multiple fields. Exhibit 2-8: Computer-Generated Primary Keys Foreign Keys Create Relationships A parent table reproduces its primary key values in every child table to which it connects. Because these reproduced values originate outside of the child table, they are called foreign keys. Exhibit 2-9: Foreign Keys Create Relationships Weak Entity A dependent table (also called a weak entity) is a child table that requires a parent table for identification.
您可能关注的文档
- (振动理论课件)非线性振动概述知识讲稿.ppt
- (控制工程课件)CH2_控制系统的数学模型知识讲稿.ppt
- (控制工程课件)CH4_控制系统的频率特性教程文件.ppt
- (控制系统实验)1幻灯片课件.ppt
- (插花艺术)插花艺术第五讲小测验幻灯片课件.ppt
- (插花艺术)第一篇 章 插花艺术概述.ppt
- (插花艺术)第七篇 章插花作品的品评欣赏.ppt
- (插花艺术)第五篇 章西方传统插花艺术.ppt
- (插花艺术)第六篇 章现代插花艺术.ppt
- (操作系统课件)ch10实例研究1 UNIX 和 与LINUX.ppt
- (数据库原理课件)Chapter4 Conceptual Design宣讲培训.ppt
- (数据库原理课件)Chapter5 Normalization宣讲培训.ppt
- (数据库原理课件)Chapter6 Advanced database Design宣讲培训.ppt
- (数据库原理课件)Chapter7 Logical Database Design教学教材.ppt
- (数据库原理课件)Chapter8 Physical Database Design-Step7 Controlled Redundancy培训资料.ppt
- (数据库原理课件)Chapter8 Physical Database Design-Step8 Database Maintanance教学讲义.ppt
- (数据库原理课件)Chapter9 Index(Step4.3)知识介绍.ppt
- (数据库原理课件)java开发中的数据库连接教程教案.ppt
- (数据结构课件)C内容总结幻灯片课件.ppt
- (数据结构课件)VS2010开发环境幻灯片课件.ppt
文档评论(0)