Generic Modeling. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define generic modeling –Evaluate and describe.

Slides:



Advertisements
Similar presentations
CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Advertisements

Lukas Blunschi Claudio Jossen Donald Kossmann Magdalini Mori Kurt Stockinger.
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
(wrapping up from last week)
IE 423 – Design of Decision Support Systems Introduction to Data Base Management Systems and MS Access.
Chapter 12 Information Systems Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
File Systems and Databases
Concepts of Database Management Sixth Edition
Chapter 12 Information Systems Nell Dale John Lewis.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Chapter 13: Object-Oriented Programming
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Modeling and Evaluation. Modeling Information system model –User perspective of data elements and functions –Use case scenarios or diagrams Entity model.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Database Design Concepts
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
Concepts of Database Management Seventh Edition
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
XP Chapter 5 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Developing Effective Reports Chapter 5 “Nothing succeeds.
XP Class Objectives – 9/10 and 9/12 Learn how to design a small database Understand the goals of a database Understand the terminology of database design.
Microsoft ® Office Access ™ 2007 Training Choose between Access and Excel ICT Staff Development presents:
Choose between Access and Excel Right questions, right program If you’re having trouble choosing between Access and Excel, take a moment to answer an important.
CHAPTER 5 Data and Knowledge Management. CHAPTER OUTLINE 5.1 Managing Data 5.2 Big Data 5.3 The Database Approach 5.4 Database Management Systems 5.5.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Concepts and Terminology Introduction to Database.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
End Show 3.4 Database Management System Unit 3. End Show What is a database? It’s an organized collection of data, related to a particular subject or.
Artificial, Composite and Secondary UIDs
Database Design Sections 9 & 10 Modeling Historical Data, conditional nontranferability, time-related constraints, Database conventions, generic modeling.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Database Design Sections 9 & 10 Modeling Historical Data, conditional nontranferability, time-related constraints 1.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Storing Organizational Information - Databases
Database Design 1: Introduction and Terminology CS 320.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
©NIIT Normalizing and Denormalizing Data Lesson 2B / Slide 1 of 18 Objectives In this section, you will learn to: Describe the Top-down and Bottom-up approach.
Modelling Change: Price. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Solve the business requirement of tracking.
Subtype Mapping. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –State and apply the table, column, identifiers,
Creating Databases Data normalization. Integrity and Robustness. Work session. Homework: Prepare short presentation on enhancement projects. Continue working.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
Supertypes and Subtypes
Resolving Many-to-Many Relationships. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Identify attributes which.
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
CHAPTER 5 Data and Knowledge Management. CHAPTER OUTLINE 5.1 Managing Data 5.2 The Database Approach 5.3 Database Management Systems 5.4 Data Warehouses.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Lesson 10 Databases.
CITA 215 Section 3 Data Modeling.
Chapter 4 Relational Databases
Database Normalization
Using a database.
Test Your Tech Blogging is: Someone's online journal.
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
Presentation transcript:

Generic Modeling

2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define generic modeling –Evaluate and describe the advantages and disadvantages of generic modeling –Construct a generic version of a more specific data model

3 home back first prev next last Why Learn It? Generic models can reduce the number of entities in a diagram and provide a lot of flexibility in unstable situations, where the business requirements change often. A business that needs to frequently add entities and/or attributes could benefit from generic modeling. One example would be a pawnshop ( 当铺 ) that buys and sells different types of items all the time. It would be difficult to predict the number of item types and the different attributes each type would have.

4 home back first prev next last Background Knowledge When database has been built according to the ER Model: –Entity has changed to TABLE. –Attribute and relationship has changed to COLUMN. –Instance has changed to ROW or RECORD in TABLE. Users can change rows/data by themselves but they can not change the TABLE or COLUMN of the database. They can not change the structure of the database. –As the user of your house, you can decide what can be stored in a house. But if you need to add a room in your house, you cannot do it by yourself. You must ask help from the professionals.

5 home back first prev next last Background Knowledge If the business of your client changes very quickly and you are asked to add some new tables or columns every week, that would be a disaster for you. In this case, Generic Modeling can save you.

6 home back first prev next last The main idea Modify your model –Change some Entity/table to instance/row –Change some Attribute/column to instance/row So the client can do the work by themselves. To understand the contents of this lesson, you need to simulate your client and try some new requirements. Then you can see how your model can adapt to the new requirements.

7 home back first prev next last Changing Article type from Entity to Instance Generic modeling looks at the same context from another, more distant perspective. From a distance, many things look the same.

8 home back first prev next last Changing Article type from Entity to Instance Suppose you are to make a model for a clothing store. The business typically sells many different articles: shoes, shirts, dresses, pants, and so on. For each type of clothing article, there are different attributes. You can model every type as an entity. Or you could create a more generic model that uses one entity, ARTICLE, with or without subtypes. However, this model would be fine only if there were no (or possibly very few) new instances of ARTICLE TYPE during the life cycle of the system. –For example, the store need to sell shoes tommorrow and the shoes have new attributes which are not included in the model. How can the store track these data?

9 home back first prev next last Recycling of Attributes Another generic model involves recycling attributes. Using this structure, here are some examples of instances of ARTICLE TYPE:

10 home back first prev next last Recycling of Attribute You can also store information about the data types of each property in the definition attributes (example: property 2 for all articles (length) has a data type of number, property 4 of DRESS (bodice style) is stored as text)

11 home back first prev next last Recycling of Attribute These would be the examples of corresponding instances of ARTICLE Using this method, you can add new types of articles fairly easily, provided that the number of attributes does not exceed the maximum that was originally defined.

12 home back first prev next last Attributes Modeled as Property Instance This model takes a third approach. –Every value for a property of an ARTICLE is stored separately. This model gives a lot of freedom to define new articles and properties during the life cycle of the system. –Using this structure, here are some examples of instances of each entity:

13 home back first prev next last Attributes Modeled as Property Instance In this model, Attributes of ARTICLE have been changed into instances of PROPERTY and ARTICLE PROPERTY VALUE.

14 home back first prev next last Generic Models Benefits: –(1) Flexible -- can prevent the need to change data structures in the future –(2) Can reduce the number of entities dramatically –Cost: Increased complexity in both the data model and application programs

15 home back first prev next last Terminology Key terms used in this lesson include: –Generic –Perspective

16 home back first prev next last Summary In this lesson, you have learned to: –Define generic modeling –Evaluate and describe the advantages and disadvantages of generic modeling –Construct a generic version of a more specific data model