MIS2502: Data Analytics Relational Data Modeling

Slides:



Advertisements
Similar presentations
Database development (MIS 533) MBS in Management Information Systems and Managerial Accounting Systems (2007 / 2008) Fergal Carton Business Information.
Advertisements

Entity Relationship Diagrams
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Case study Lisa’s Bookstore IST210.
MIS2502: Data Analytics Relational Data Modeling
ZEIT2301 – Database Design Entity-Relationship Diagrams
Business Process Modeling
MIS2502: Data Analytics Coverting ERD into a DB Schema David Schuff
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
MIS2502: Data Analytics Relational Data Modeling
RELATIONAL DATA MODELING MIS2502 Data Analytics. What is a model? Representation of something in the real world.
MIS2502: Data Analytics Relational Data Modeling David Schuff
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
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.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
COP Introduction to Database Structures
Data Modeling Using the ERD
Order Database – ER Diagram
Let try to identify the conectivity of these entity relationship
Application Extension 5a
Database Development Lifecycle
Entity Relationship Diagrams - 1
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
MIS2502: Data Analytics Relational Data Modeling
Functional Dependencies
Order Database – ER Diagram
MIS5101: Business Intelligence Relational Data Modeling
ER MODEL Lecture 3.
Information Systems in Organizations 2. 1
CIS 336 strCompetitive Success/tutorialrank.com
Databases and Information Management
Order Database – ER Diagram
Data Modelling Introduction
Information Systems in Organizations 2. 1
Database Fundamentals
Information Systems in Organizations 2. 1
Entity relationship diagrams
MIS2502: Data Analytics Relational Data Modeling
Information Systems in Organizations 2. 1
MIS2502: Review for Exam 1 JaeHwuen Jung
Technical Module A Data Modeling Definitions
MIS2502: Data Analytics Converting ERDs to Schemas
Database Systems: Design, Implementation, and Management Tenth Edition
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
MIS2502: Data Analytics Relational Data Modeling
Database Design Chapters 17 and 18.
MIS2502: Data Analytics Relational Data Modeling
Databases and Information Management
MIS2502: Review for Exam 1 Aaron Zhi Cheng
Order Database – ER Diagram
Chengyu Sun California State University, Los Angeles
CHAPTER 2 - Database Requirements and ER Modeling
Entity-Relationship Diagram (ERD)
Information Systems in Organizations 2. 1
MIS2502: Data Analytics Things You Can Do With Data & Information Architecture Zhe (Joe) Deng
MIS2502: Data Analytics Relational Data Modeling 2
Information Systems in Organizations 2. 1
Conceptual modeling of databases
Database Management system
Database Management system
Information Systems in Organizations 2. 1
MIS2502: Data Analytics Relational Data Modeling 3
Information Systems in Organizations 2. 1
Presentation transcript:

MIS2502: Data Analytics Relational Data Modeling Zhe (Joe) Deng deng@temple.edu http://community.mis.temple.edu/zdeng

The information architecture of an organization Now we’re here… Data entry Transactional Database Data extraction Analytical Data Store Data analysis Series of tables stored in a relational database Stored as structured or unstructured data in a variety of formats.

What is a model? Representation of something in the real world

Why bother modeling? Creates a blueprint before you start building the database Gets the story straight: easy for non-technical people to understand Minimize having to go back and make changes in the implementation stage

Modeling a database A representation of the information to be captured Describes the data contained in the database Explains how the data interrelates

Transactional Database Four Steps of Modeling ER Diagram (Entity Relationship Diagram) Problem Statement Transactional Database Database Schema Transactional Database

Start with a problem statement Design a database to track orders for a store. A customer places an order for a product. People can place an order for multiple products. Record first name, last name, city, state, and zip code for customers. We also want to know the date an order was placed. Finally, we want to track the name and price of products and the quantity of each product for each order.

The Entity Relationship Diagram (ERD) The primary way of modeling a relational database ER Diagrams --- are sketches like this one! Primary Key TUID Course number Cardinality Name Student contains Course Attribute Course Title Entity Relationship GPA

The Entity Relationship Diagram (ERD) Three main diagrammatic elements Entity A uniquely identifiable thing (i.e., person, order) A characteristic of an entity or relationship (i.e., first name, order number) Attribute Relationship Describes how two entities relate to one another (i.e., makes)

Entity Represents an object/construct we want to manage Another way to think: a name of a table (student, class, bill, purchase order,…) Properties: Normally a singular noun, e.g., Book, Student, etc

Attribute A characteristic of an entity or relationship Represents actual data we would like to manage - For entity ‘Student’, ‘StudentID’, ‘GPA’, ‘Class Year’ are the examples of Attribute Properties: Normally a singular noun Within one entity, each attribute name should be different

Relationship Represents a relationship between entities Each entity must be related to at least one other entity Properties: Normally a verb, e.g., Enrolls In as to say: “Student” --- “Enrolls In” --- “Class”

Begin with Identifying the Entities This is what your database is about. What’s left are your entities! List the nouns in the problem statement. Step 1 When nouns are synonyms for other nouns, choose the best one. Step 2 Make a note of nouns that describe other nouns. These will be your entities’ attributes. Step 3 Rule out the nouns that don’t relate to the process to be captured. Step 4

So here are the nouns… Which nouns are entities Design a database to track orders for a store. A customer places an order for a product. People can place an order for multiple products. Record first name, last name, city, state, and zip code for customers. We also want to know the date an order was placed. Finally, we want to track the name and price of products and the quantity of each product for each order. Which nouns are entities Which nouns are attributes? Which nouns are irrelevant?

The ERD Based on the Problem Statement

Here’s where it gets tricky… In this case, “store” is the context store is not an entity because we are not tracking specific information about the store (i.e., store location) BUT…if there were many stores and we wanted to track sales by store, then store would be an entity! But that isn’t part of the problem statement….

The primary key Entities need to be uniquely identifiable So you can tell them apart They may not be explicitly part of the problem statement, but you need them! Use a primary key One or more attributes that uniquely identifies an entity How about these as primary keys for Customer: First name and/or last name? Social security number? Customer ID Uniquely identifies a customer Uniquely identifies an order Order number

Time for our first ICA!