NEWSLETTERS
 

CIO.com updates, insights and advice on technology, management and your career.

 
 
 
SUBSCRIBE TO CIO
 
Are you involved in setting the direction for your company's IT budget or strategy?

Apply today for a FREE subscription to CIO Magazine!

 


Tue, Mar 25, 2008 3:51 EDT

Data Modeling & Process Modeling

Anonymous user

Topic: Architecture

Current Rating: 2 Comments: 0

Data Modeling
Logical Model
Relational Modeling ( or E-R Modeling ) & OO Modeling
Why Modeling is important ?
Modeling helps in visualizing the business with out being cluttered with too many details and application logic. However the rules of normalization are rigorously enforced leading to clean design. Hence it would be clearly visualized and cleanly designed model.
Without modeling( in 3NF) if the table structures are implemented it will lead to what is called insert, update, and delete anomalies i.e. for eg If you have supplier, part & supplier city data all in one table and if you want to a delete a part you delete the entire row and loose other information also. You cannot add a new city unless a you have supplier & part from that city. Updating a supplier city requires updating several rows. This is NOT common sense but a source of common errors in many organizations.
Entities and Relationships
Any real world thing is an entity eg : Cat, Bus , Customer , order etc. However the entities must be relevant to the business being modeled. The relationship between them is considered to build the model. For example a CUSTOMER must place one or more ORDERS. There are many other relationships . They are (One to Many, Many to Many etc.)
Examples
 1-M : a CUSTOMER must place one or more ORDERS.
 M-M : A Company may sell to one or more customers &
A Customer may buy from one or more companies
 Recursive : A Manager manages one or more Employees
 Arc : A bank Transaction must be of Current or
checking account
 Super Types &
Sub Types : Bus, Plane, Ship are types of Vehicle
 Identifying &
non-identifying relationships : An entity can exist independently or
with reference to other entity
eg : Pin (Zip) Code is independent of State
Order is dependent on Customer
Cardinality
Number(0,1, M) of occurrences of each of entity in a relationship.
Attributes
Each entity shall have a primary key and optional other attributes.
Primary Key
It uniquely identifies an instance of an entity (or record in a table).
For eg. A Customer is identified by a customer number.

Referential Integrity
The referential integrity rule states that every foreign key value must match a primary key value in an associated table

Rules of normalization
First Normal Form
Attributes shall be atomic
No repeating values
Second Normal Form (applicable to composite PK)
Satisfies 1NF
Every non-key attribute shall depend on the whole of primary key.
Non-key attributes shall NOT depend on part of PK.
Third Normal Form
Satisfies 1NF & 2 NF
There shall NOT be any transitive dependencies between non-key
attributes.
Non-key attributes shall depend on nothing but the PK.

Physical Model
A physical model can be generated from logical model using case tools.
A physical model has the following components most of which is
generally known and will not be elaborated here.
 Tables
 Primary Key
 Foreign Key
 Constraints
 Indexes
 Triggers & stored procedures
 Delete, Insert, Update operations on Parent/Child table can be handled in various ways in the parent/child table as follows depending on business requirement.
• Restrict/dependent
• Cascade/automatic
• Nullify
• Default
• Customized
• No effect
Generally it is recommended to implement the logical model in TNF. However some times for various reasons like performance it is brought back to SNF & this is called de-normalization.
Map Logical to Physical Model

Logical Physical Remarks
Entity Table
Attribute Column
UID(Unique Identifier) Primary Key/Alternate Key There should NOT be any intelligence built into PK. It should be a simple number
Referential Integrity Foreign Key
Data Validation Constraints
Business Rules Triggers/Stored Procedures
M-M Relationship Associative table
Super /Sub Type Table There are 3 ways of implementing this i.e. Rollup, Roll down and one table per entity ( super type & sub

You do not have flash or javascript support.
Average (1 vote)
2
 
Start a Conversation
Click to post

Got something to say? We want to hear it! Click the Post button to get started. GO»

EXPERT ADVICE
See our roster of experts.

Advice & Opinion from more than 108 of IT's most insightful thinkers.

  PARTNERS       WEBCASTS    
 

Preparing for the Next Cyber Attack

Ensure you are up-to-speed on the latest security technologies available to keep your network safe in this Executive Guide. Get a thorough assessment of the corporate security threat landscape. Protect your network with data leakage protection, NAC and other technologies explained in this report.

Sponsored by Qwest  Read this Executive Guide »

 

Cloud Building: 8 Ingredients for Internal Clouds

Cloud computing: a fundamentally new way to deploy IT services and functions cost-effectively and quickly. Learn how the VMware vCloud initiative dramatically improves how consumers access their information and experience applications as well as the 8 ingredients to get you going.

Sponsored by VMWare  Read this White Paper »

 

Investing in Business Analytics Technology

You're thinking now is the time to take the plunge into business analytics, but you still have some unanswered questions. This research summary addresses the most common questions and concerns surrounding the successful launch of a business analytics initiative. It also includes real-world examples of organizations already getting return on their investment.

Sponsored by SAS  Read this White Paper »

Resource Alerts

Get instant email notifications by topic when white papers, webcasts, and case studies are added to our library.

Resource Alerts

Get instant email notification when white papers, webcasts, and case studies are added to our library. Don't just be up-to-date—be up to the minute with our new Resource Alerts.

Improving Transparency and Accuracy in IT Cross Charging

During this Webcast you'll learn how KBC Group implemented SAP BusinessObjects Profitability and Cost Management and realized many benefits.   View Now »

 

Cost Savings and Risk Reduction with Effective Systems Management

Join us and see how Novell can help you respond to today's economic challenges by increasing productivity, reducing costs and aligning IT initiatives with overall business goals.  View Now »

 

Capitalize on Your SAP Content

Learn ways to improve your content management by viewing these Open Text webinars today.  View Now »

Resource Alerts

Get instant email notification when white papers, webcasts, and case studies are added to our library. Don't just be up-to-date—be up to the minute with our new Resource Alerts.

 
NEWSLETTER

Sign-up for the Blogs & Discussion Newsletter

 
FEATURED SPONSORS
 
 
 
SPONSORED LINKS
 

Introducing the new HP ProLiant G6 server family

Accenture: Outsourcing for Competitive Advantage. More...

Better spam protection with Postini for just $1/user/mo

Introducing the new HP ProLiant G6 server family

infoBOOM! - The Mid-Sized Company CIO's Exclusive Community

Accenture IT Consulting: Logical meets technological. More . . .

The Fraudster Economy Model: Operating a Business in the Underground

Trade in your old laser printer and get up to $1000 back!

Taking the Service Desk to the Next Level

Revolutionizing Enterprise Application Deployment

Why Data Loss is Increasing--and What You Can Do About It

Data Loss Prevention: A Better Way to Approach Security

Learn how to managing client systems in the enterprise.

Build a High-Performance Open Web Platform

Mid-Sized Company CIO Community: infoBOOM!

Enterprise PBX Comparison Guide

Getting Value from Outdated Networking Equipment

Losing Ground: 2009 TMT Global Security Survey

Stop Application Fraud at the Source with Device Reputation

Learn about the VMware vSphere (TM) & Intel (R) Xeon (R) Processor 5500 Series

Learn how a virtualized enterprise can help your company reduce costs

Why Isn't Server Virtualization Saving Us More?

Learn how to save 30% through project & portfolio management.

How Open Source is Changing the Face of Enterprise Software

8 Key Ingredients to Building an Internal Cloud

Accenture IT Consulting: Enabling high performance. More...

Top Five CIO Challenges

Insight makes it easy to spend your Microsoft subsidy check.

Five minute business analytics assessment. Immediate results.

Dangerous Collaboration Practices: 5 Ways IT Can Minimize Risk

Accenture: Outsourcing for uncertain times. Click to learn more.

The Case for Investing in Business Analytics Technology. Read white paper.

Live Webinar: Applying Business Analytics. Click here to learn more

Seven Ways ITIL Can Help You in an Economic Downturn

Developing A Dynamic, Real-Time IT Infrastructure

Maximizing the Business Value of the PC Infrastructure

Communications and Collaboration Needs at Business Organizations

Using Open Source to Deploy Web Applications

Cloud Computing: Read about VMware's compelling vision & set of products

Enterprise PBX Buyer's Guide

Secondary Market Primer: Your Network at Half Price

How Interactive Viewer Reduces the Effort to Meet Visualization Requirements

Top-line Performance that's Bottom-line Efficient

White Paper: 8 Key Ingredients to Building an Internal Cloud

Read about virtualization and consolidation effort best practices

Building the Virtualized Enterprise with VMware Infrastructure

The Global Marketplace Today: Strategies for Tough Times

Top 10 Business and IT Drivers for the Wealth Management Sector

5 Steps to Automating Accounts Payable

Bottom-Line Benefits of Virtualization