1 / 23

An Introduction to Data Modelling

An Introduction to Data Modelling. Entity Relationship Modelling. Avin Mathew amathew@smsmt.com. Nov 2010. WHY do we model data?. WHAT is a data model?.

summer
Download Presentation

An Introduction to Data Modelling

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. An Introduction to Data Modelling Entity Relationship Modelling • Avin Mathew • amathew@smsmt.com • Nov 2010

  2. WHY do we model data?

  3. WHAT is a data model?

  4. An album has an a creating artist, a title, recommended price, genre and album art that is displayed to a user. A user can subsequently purchase the album in various quantities and at different unit prices depending on specials on offer. A user’s purchase order will contain the date of purchase, their contact details (address, telephone and/or email) and the total price.

  5. WHERE do we use data models?

  6. WHEN would a Business Analyst use data models?

  7. Data Model Levels

  8. How do we data model? • People • Business, users, developers, DBAs • Inputs • Business & functional requirements, business processes, databases, documents, UI screens • Tools • Drawing packages (e.g. PowerPoint, Visio), data modelling packages (e.g. ERWin, System Architect)

  9. Entity Relationship Model • Most common data modelling technique • Used in most business information system development • Tools that engineer a database from a data model

  10. ER Process • Identify entities • Identify attributes • Identify relationships • Apply naming conventions • Assign keys • Normalise

  11. Identify entities • An object that exists and is distinguishable from other objects • Examples: person, company, event, place • Should be a singular concept

  12. Identify attributes • Properties of an entity

  13. Identify relationships • An association between two entities • Cardinality and optionality • One to one • Many to many • Roles • One to many

  14. Apply naming conventions • Examples: • Singular vs plural names for entities • Consistent names: date, summary, description, name • Reference Types all ending with Type • Standardise suffixes: Id, Key, Code, Flag

  15. Assign keys

  16. Normalise • Every non-key attribute in every table is directly dependent on the key • Results in: • Elimination of redundancies • Fewer anomalies • Most information systems are in third-normal form

  17. Scenario 1

  18. Scenario 1 – A Possible Data Model

  19. Scenario 2

  20. Scenario 2 – A Possible Data Model

  21. Data Model Patterns • David Hay – Data model patterns: Conventions of thought • Martin Fowler – Analysis patterns: Reusable object models • Len Silverston – The data model resource book: A library of universal data models for all enterprises

  22. An Introduction to Data Modelling Entity Relationship Modelling • Avin Mathew • amathew@smsmt.com • Nov 2010

More Related