1 / 9

Database Fundamentals

Database Fundamentals. The Data Model. Microsoft Enterprise Consortium: http://enterprise.waltoncollege.uark.edu Microsoft Faculty Connection/Faculty Resource Center http://www.facultyresourcecenter.com. Model notation.

nusa
Download Presentation

Database Fundamentals

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. Database Fundamentals The Data Model Microsoft Enterprise Consortium: http://enterprise.waltoncollege.uark.edu Microsoft Faculty Connection/Faculty Resource Center http://www.facultyresourcecenter.com

  2. Model notation • The are relatively few symbols in data modeling but many terms and concepts are represented by a deceptively simple set of symbols. • We can’t seem to agree! There is than one set of symbols (a.k.a. notation) used for data modeling. There is no consensus among IS professionals on which set to use. • We’ll use the crow’s feet notation. It is commonly found in systems analysis and design textbooks. • Once you become comfortable with data modeling terms—what they are and, more importantly, what they mean—you’ll find it fairly easy to switch from one notation to another.

  3. Data Model – Entity • Entity: An entity is a person, place, thing or event about which we want to store information. Example entities are: customer, inventory, project, etc. • Entity type and entity: We usually say “entity” but you may also hear “entity type”. • Entity and entity instance: An entity instance is a single occurrence of an entity. For example: Bob Wilson is an instance of the entity CUSTOMER. • The symbol for an entity is a rectangle: ENTITY

  4. Data Model – Attribute • Attribute: An attribute is a single unit of information that describes something about an entity. • An entity usually has many attributes. • Example: For a CUSTOMER entity, we probably want to know the customer’s first name, last name, address, home phone number, etc. ENTITY Attribute1 Attribute 2 CUSTOMER Cust_First_Name Cust_Last_Name Cust_Phone

  5. Data Model: Different kinds of attributes EMPLOYEE Emp_ID Emp_First_Name Emp_Last_Name {Emp_Phone} • In this example of an EMPLOYEE entity, some of the attributes have additional notation that is important to understand. • EMP_ID is an identifier. Each entity instance has a unique value for the identifier attribute. Another way to put this: Each identifier value uniquely identifies one entity instance. • Emp_Phone is a multivalued attribute. That means each employee may have more than one phone number. So, this “phone number” attribute can have more than one value for each entity instance. Karla Stevens has employee ID 3492. David Adams has employee ID 4382. Karla Stevens has a number for her office phone number, her cell phone, and her home phone.

  6. Data Model – Relationship • Within the data model, one entity is related to one or more entities. • A line represents a relationship between two entities. • In the example below a CUSTOMER is related to an ORDER and an ORDER is related to INVENTORY. (Attributes aren’t shown in order to simplify the diagram.) CUSTOMER ORDER INVENTORY

  7. Data Model - Cardinality • Cardinality symbols show the minimum and maximum constraints on a relationship (and here is where the “crow’s feet” come in). • The next presentation will discuss cardinality in greater detail but the example below shows 3 symbols: a vertical line, a zero, and crow’s feet (3 lines projected from a single point). CUSTOMER ORDER INVENTORY

  8. This presentation covered … • The crow’s feet notation used for modeling data. • Data model terms: • Entity & entity type • Attribute • Entity instance • Relationship • Identifier • Multivalued attribute • Cardinality – minimum and maximum

  9. Resources • Microsoft Enterprise Consortium: http://enterprise.waltoncollege.uark.edu/mec.asp • The consortium provides teaching material and large databases donated by some major corporations. • Microsoft Faculty Connection—Faculty Resource Center http://www.facultyresourcecenter.com/ • A wide range of teaching resources are available.

More Related