NEWSLETTERS
 

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

 CIO BlackBerry News and Tips
 CIO Research and Analysis
 CIO Microsoft
 CIO Insider
 
 
 
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
 

Post new comment

* Subject:
* Username:
* E-mail:
The content of this field is kept private and will not be shown publicly.
Homepage:
* Body:
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <strike> <p> <br>
  • Lines and paragraphs break automatically.
More information about formatting options

* Denotes required field.

Hot Conversations

Take My Windows 7 Please: A Resale Tale

Posted by Shane ONeill in News | 6 comments

Creating a Privacy Policy Part V

Posted by Ariel Silverstone in Best Practices | 1 comments

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 113 of IT's most insightful thinkers.

  PARTNERS       WEBCASTS    
 

Windows 7 Webcast Series

There's a lot of buzz about Windows 7 out there. Each month in our webcast series, listen to analysts and customers discuss how Windows 7 and the Windows Optimized Desktop is impacting large companies around the world. Learn how they evaluated Windows 7, including the cost of deployment, deployment strategies, and tangible benefits.

Sponsored by Microsoft  Listen to on-demand Recordings »

 

Service Level Management Best Practices Life Cycle Overview - Improve Service Levels

Best practices for Service Level Management (SLM) is a process for consistently meeting customer requirements and delivering on IT's promises. See the steps required to ensure high-quality SLM.

Sponsored by Compuware  Read this White Paper »

 

Keeping Your Members Safe from Online Scams and Predators

In order to keep fraudsters out, romance sites must deploy effective solutions that look at information independent of what is supplied by users. A device fingerprinting solution such as iovation ReputationManager™ provides unique insight into the computers being used to create multiple accounts and exposes hidden device-account relationships that identity-based fraud solutions often miss.

Sponsored by iovation  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.

Defend Against Blended Threats: What You Need to Know

Blended Web and email threats are becoming increasingly complex and represent a huge...  View Now »

 

Prescriptive Actions to Reduce Risk

In this Webcast, learn best practices for effective systems management in a heterogeneous environment and keep client systems cost under control.   View Now »

 

Webcast- Vantage 11: Redefining Application Performance Management

Compuware's latest release, Vantage 11, is a major advance in end-to-end application performance management--bringing together proactive issue identification, quantification of business impact and problem resolution into a single solution. Tune in to learn how Vantage 11's top-down approach helps you make better decisions and dramatically lower operations costs.  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
 

See how AT&T can help protect your network.

Top Five CIO Challenges

Streamline IT Costs. Boost Performance with WAN Optimization.

Want to know how you can maximize employee productivity?

Build your 1st app FREE with Force.com

TDWI checklist helps define data readiness for analytics. Download report.

Increase UPS efficiency without sacrificing protection.

A Clear View Toward Virtualization

Virtualization Technology as a Business Solution

The rules of infrastructure management just changed.

A Clear View Toward Virtualization

Interactive Q&A helps you discover key ways to maximize IT assets.

Ready to virtualize tier one applications? Check your virtualization maturity.

Think you can't afford a Cisco Switch? Cisco Catalyst Switches are now more affordable.

Five minute business analytics assessment. Immediate results.

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

White Paper: Right-Sizing Your Power Infrastructure

Webcast: Unleashing the Power of Customer Data

White Paper: Managed Security for a Not-So-Secure World

SharePoint - Unchecked growth of content is unsustainable.

White Paper: Legacy Tools: Not Built for the Helpdesk

Taking a Seat at the Executive Table: The Reality of Virtualization

Five-Step Mobility Management Plan

White Paper: Next Generation Remote Infrastructure Management

Disciplined Autonomy: Resolving the Tension Between Flexibility and Control

Join us at the US-Brazil IT-BPO Summit, on November 10th in New York.

Unified Communications: Thoughts, Strategies and Predictions. Join the discussion

Read the RSA report: Security for Business Innovation

Webcast: Looking to the Cloud for Email and Collaboration Services

64-page prescriptive guide to security, compliance, and IT operations.

Keep your IT expertise up to date. Join the Intel Premier IT Professionals.

A new fleet of PCs with a total ROI in 10 months. Find your ROI.

eZine: A Roadmap to Reducing IT Complexity

Reduce risk, gain agility. See how Progress can help your business.

Virtualization Technology as a Business Solution

eZine: A Roadmap to Reducing IT Complexity

World-class trading technology solutions from NYSE Technologies.

If You're Paying for Telecom, You're Paying Too Much. Contact Asentinel Today.

Trade-In your old printer and save up to $1,000 plus free recycling!

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

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

White Paper: 4 Customer Service Myths

Mobile Security: The Essential Ingredient for Today's Enterprise

White Paper: Improve Agility with Operational Responsiveness

White Paper: 5 Best Practices for Smartphone Support

Global Research: CIOs Weigh In On Virtualization

5 Key Virtualization Management Challenges

Learn How Web Site Performance Impacts Shopper Behavior

IDC White Paper: CCM for IT Compliance and Risk Management

Tolly Group Lab Test Results: Cisco vs. ShoreTel