1 / 7

Kathy S. Schwaig

Information Technology. Databases. Kathy S. Schwaig. Conceptual Design Entity-Relationship Model . Entity A “thing” of interest. May be tangible (employee) or intangible (banking transaction). E.g. employee, department, manager, customer. Attributes -- properties or characteristics.

nuwa
Télécharger la présentation

Kathy S. Schwaig

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Information Technology Databases Kathy S. Schwaig

  2. Conceptual Design Entity-Relationship Model • Entity • A “thing” of interest. • May be tangible (employee) or intangible (banking transaction). E.g. employee, department, manager, customer. • Attributes -- properties or characteristics. • Key • Each entity must be uniquely identified by an attribute or group of attributes called a key. E.g.: Employee: [EMP#, name, address, phone#]

  3. Relationship • An association between entities. • E.g. Managers manage Employees • Cardinalities indicate the number of each entity that may participate in the relationship. • One to one (1:1) • One to many (1:N) • Many to many (N:M) • M:N relationships may have relationship attributes. • E.g. Employees assigned-to Projects:[length-of-time] N : M

  4. Entity- Relationship Diagram • Each entity represented by a rectangle. • Each relationship represented by a diamond. • Attributes shown in ovals. • Cardinalities next to entities

  5. E-R Diagram SSN name grade Course# N assigned to M Student Course address description

  6. Consulting Company Database You have been asked to create a database for a small consulting company. The company wants to keep track of which employees are assigned to which project and what dates they start and stop working on them. An employee can work on more than one project at a time (as any MBA student knows). You also need to keep track of which client sponsors which project(s). Each project usually requires a set of skills so you need to know what skills an employee has and when he or she obtained them. Employees are encouraged to find clients and receive extra compensation for doing so.

  7. Emp# finds l Client-Id Employee N N N start-date Client has end-date date acquired 1 assigned to M sponsors Skill M N Skill- name Project# M requires N Project

More Related