(资料库系统)_第1页
(资料库系统)_第2页
(资料库系统)_第3页
(资料库系统)_第4页
(资料库系统)_第5页
已阅读5页,还剩33页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1,Database Systems(資料庫系統),9/27 10/1, 2007 Lecture #2,2,Course Administration,Office Hour: Thur 2-3 Can everyone get the textbook? HW #1 will be on the course homepage later today It is due 2 weeks from today. Next week reading: R each of the following situations concerns the Teaches relationship set

2、. For each situation, draw an ER diagram that describes it. Professors can teach the same course in several semesters, and each offering must be recorded.,26,Professors can teach the same course in several semesters, and only the most recent such offering needs to be recorded. Every professor must t

3、each some courses,27,Every professor teaches exactly one course (no more, no less) Every professor teaches exactly one course (no more, no less), and every course must be taught by some professor,28,Exercise 2.3 (R-G Book),Professors have an SSN, a name, an age, a rank, and a research specialty. Pro

4、jects have a project number, a sponsor name (e.g., NSF), a starting date, an ending date, and a budget.,29,Graduate students have an SSN, a name, an age, and a degree program Each project is managed by exactly one professor (known as PI) Each project is worked in by one or more professors (known as

5、Co-PIs) Each project is worked on by one or more graduate students (known as RAs),30,When graduate students work on a project, a professor must supervise their work on the project. Graduate students can work on multiple projects, in which case they will have a potentially different supervisor for ea

6、ch project. Departments have a department number, a department name, and a main office. Department has a professor (known as Chairman) who runs the department.,31,Professors work in one or more departments, and for each department that they work in, a time percentage is associated with their job Gra

7、duate students have one major department in which they are working on their degree. Each graduate student must have another, more senior graduate student as an advisor.,32,Summary,ER model is popular for conceptual design Sketch the design of a database informally using pictures Basic constructs in

8、ER model: entities, relationships, and attributes (of entities and relationships). Some additional constructs: weak entities, ISA hierarchies, and aggregation. Several kinds of integrity constraints: key constraints, participation constraints, and overlap/covering constraints for ISA hierarchies. De

9、sign guideline in ER model,33,Ubicomp Project of the Week:Hyperdragging (SONY CSL, 1999),How to bring human computer interaction (desktop PC) into the physical environment (just a bit)? “Disappearing computing”,34,Entity Sets Versus Attributes,Modeling a concept with a new entity set should satisfy

10、at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute. or It is the “many” in a many-one or many-many relationship.,35,Example: Okay,Beers,Manfs,ManfBy,name,Manfs deserves to be an entity set because of the nonkey attribute addr. Beers

11、deserves to be an entity set because it is the “many” of the many-one relationship ManfBy.,name,addr,36,Example: Beers Entity not Needed,Beers,Manfs,ManfBy,name,Beers can be an attribute rather than an entity.,name,addr,37,Example: Okay,Beers,name,There is no need to make the manufacturer an entity set, because we record nothing about manufacturers besides their name.,m

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论