Você está na página 1de 28

LearnDataModeling.

com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

HOME
Business Process & Business Modeling:
Modeling Types

Business Process Modeling Tools

Modeling Methods

Business Process Modeling Example

Business Process

Process Flow Modeling

Business Process Tools

Data Flow Modeling

Business Process Management (BPM)

Workflows

Advantages of BPM

Business Activity Monitoring

Business Process Re-engineering

Business Process Outsourcing

Business Process Modeling

Procurement BPO

Data Modeling Modeling:


Data Modeling Overview
Data Modeling Overview

Data Modeling Objects

Data Modeling Development Cycle

Domains, Defaults & Check Constraints

Steps to Create a Data Model

Data Model Repository

Data Modeler Role

Data Model Versioning

Data Modeling Standards

Data Modeling Reports

Data Modeling Tools


Data Modeling Tools

Creating a Data Model in Visio

DM Tools: What to Learn?

Create Logical Data Model in ER Studio

DM Tools Erwin

Identifying & Non-Identifying ER Studio

DM Tools Xcase

Naming Standards ER Studio

Visio & Data Modeling

Create Physical Model in ER Studio

Creating Objects & Data Modeling Relationships


DM Relationships

Identifying Relationship

Create Objects in Data Model

Supertype & Subtype

Cardinality & Non-Identifying

Data Modeling Types


Conceptual Data Modeling

Physical Data Modeling

Enterprise Data Modeling

Relational (OLTP) Data Modeling

Logical Data Modeling

Dimensional Data Modeling

Comparison

Logical vs Physical Data Modeling

Compare Data Models & create DDL scripts

Relational (OLTP) vs Dimensional

Physical Data Modeling


DDL Scripts from Data Model

Reverse Engineering a Data Model

Modeling Data Warehouse and Data Mart


Data Warehouse and Data Mart

Star Schema

Dimensions

Snowflake Schema

Slowly Changing Dimensions

Fact Table

Interview Questions
DM Interview Questions

DM Interview Q/A Part 2

DM Interview Q/A Part 1

Data Warehouse Interview Q/A

Database & Data Modeling:


Database Overview

Alter Object Commands

Database Objects

DML Statements

Database Sample Data

Drop Object Commands

Sample Data Analysis

Other Important Commands

Create Object Commands

Data Dictionary Commands

Data Warehouse & ETL:


Data Warehouse Concepts

Informatica Interview Q/A

Database RDBMS

Learn Informatica Tutorial

ETL Tools

Informatica Transformations

ETL Tools: What to Learn?

ETL Tools Transformation Manager

ETL Concepts

ETL Testing

ETL Tools Informatica

Software Testing & Mobile Apps Testing:


Software & Mobile Apps Testing

Software Testing Tools List

Software Testing Tutorial

Open Source Software Testing Tools

Software Testing Life Cycle

Software Testing Job Titles

Software Testing Documentation

Career Path of a Software Tester

Functional Software Testing

Mobile Applications Introduction

Manual and Automated Testing

What is Mobile Ecosystem?

Software Testing Methods & Types

Mobile Native Apps vs Mobile Web Apps

What is Bug Life Cycle?

Metadata & Business Intelligence:


Metadata Tools

Business Intelligence Overview

Business Metadata

Business Intelligence Tools

Technical Metadata

OLAP & its Hybrids

Metadata & ETL

OLAP Analysis

Metadata Reports

OLAP Database Multidimensional

BI Dashboards

Key Performance Indicators

BI Scorecards

What is Data Mining?

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

DATA MODELING TOOLS


June 21, 2015
learndmdwbi
Leave a comment

There are a number of data modeling tools to transform business requirements into logical data model, and logical data
model to physical data model. From physical data model, these tools can be instructed to generate sql code for creating
database.

Popular Data Modeling Tools:


Tool Name

Company Name

Erwin

Computer Associates

Embarcadero

Embarcadero Technologies

Rational Rose

IBM Corporation

Power Designer

Sybase Corporation

Oracle Designer

Oracle Corporation

Xcase

RESolution LTD.

Related Posts
Data Modeling Tools: What to Learn?
Data Modeling Tools What to Learn? Part 2
Data Modeling Standards | Modeling Data
Comparison of Logical and Physical Data Modeling
Creating a Logical Data Model using Erwin
How to create a physical data model from a logical data model using Embarcaderos Data Architect?
(Visited 2,124 times, 4 visits today)

tagged with Data Model Tool directory, Data Model Tool List, data modeling tools, Data Modeling Tools directory list, Data
Modeling Tools list
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

DATA MODELING TOOLS: WHAT TO LEARN?


June 21, 2015
learndmdwbi
Leave a comment

Data modeling tools are the only way through which we can create powerful data models. Following are the various
options that we have to know and learn in data modeling tools before start building data models.

Logical Data Model:


How to create entity and add definition, business rule?
How to create domains?
How to create an attribute and add definition, business rule, validation rules like default values and check
constraint?
How to create supertypes, subtypes?
How to create primary keys, unique constraint, foreign key relationships, and recursive relationships?
How to create identifying and non-identifying relationship?
How to assign relationship cardinality?
How to phrase relationship connecting two tables?
How to assign role names?
How to create key groups?
How to create sequence nos?

Physical Data Model:


How to rename a table?
How to rename a column,validation rules like default and check constraints?
How to assign NULL and NOT NULL to columns?
How to name foreign key constraints?
How to connect to databases like MS Access, Oracle, Sibase, Terradata etc?
How to generate sql code from data model to run against databases like MS Access, Oracle, Sibase, Terradata etc.?
How to create a data model from an existing database like MS Access, Oracle, Sibase, Terradata etc.?
How to add database related properties to tables, indexes?
How to check different versions of the data model?
How many data modelers can concurrently work on the same version of a data model?

Data Modeling Tools What to learn? Part 2

Related Posts
Data Modeling Tools
Data Modeling Tools What to Learn? Part 2
Data Modeling Standards | Modeling Data
Creating a Physical Data Model using Erwin
How to add identifying, non-identifying, self-recursive relationship in ER Studio Data Architect?
Data Modeling Tools Xcase
(Visited 912 times, 2 visits today)
tagged with data modeling tools, Data Modeling Tools uses, What to Learn in Data Modeling Tools?
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

ERWIN TUTORIAL
July 16, 2015
learndmdwbi
Leave a comment

All Fusion Erwin Data Modeler:


All Fusion Erwin Data Modeler commonly known as Erwin, is a powerful and leading data modeling tool from Computer
Associates. Computer Associates delivers several software for enterprise management, storage management solutions,
security solutions, application life cycle management, data management and business intelligence.
Erwin makes database creation very simple by generating the DDL(sql) scripts from a data model by using itsForward
Engineering technique or Erwin can be used to create data models from the existing database by using its Reverse
Engineering technique.

Erwin workplace consists of the following main areas:


Logical: In this view, data model represents business requirements like entities, attributes etc.
Physical: In this view, data model represents physical structures like tables, columns, datatypes etc.
Modelmart: Many users can work with a same data model concurrently.

What can be done with Erwin?


Logical, Physical and dimensional data models can be created.
Data Models can be created from existing systems(rdbms, dbms, files etc.).
Different versions of a data model can be compared.
Data model and database can be compared.
SQl scripts can be generated to create databases from data model.
Reports can be generated in different file formats like .html, .rtf, and .txt.
Data models can be opened and saved in several different file types like .er1, .ert, .bpx, .xml, .ers, .sql, .cmt, .df, .dbf,
and .mdb files.
By using ModelMart, concurrent users can work on the same data model.
In order to create data models in Erwin, you need to have this All Fusion Erwin Data Modeler installed in your system. If
you have installed Modelmart, then more than one user can work on the same model.

How to create a Logical Data Model using CA Erwin Data Modeler Version 9?
In the following section, a simple example with a step by step procedure to create a logical data model with two entities
and their relationship are explained in detail.

Open CA Erwin Data Modeler Version 9 software.


Go to menu file and click new. A new box will be displayed. Click the button logical/physical from type. From the
drop down list box, select oracle as the database and version as 10g/11g. Click OK button. A new workspace is
created. To select notation IDEF1X or IE Go to MODEL/MODEL PROPERTIES/GENERAL TAB to change.
Above the workspace, you can see menus File, Edit, View, Diagram, Model, Actions, Tools, Windows, Help. Below that
you can see the following tool bars.
Standard, Toolbox, Formatting, Layout, Zoom, Display, Mart, Database, Alignment, Drawing, Transformations,
Customize. On the display toolbar, you can see Logical selected by default i.e. you will be working on creation of a
logical data model.
To create an Entity, click the icon Entity from Toolbox Toolbar and drop it on the workplace. By default E/1 will be
displayed as the entity name and type it as Country.
To create an Attribute, Place the cursor on the entity Country and right click it. From the displayed menu, click
attribute properties which will take you to the attribute wizard. You can see a button New. Click New on the wizard
and type attribute name as Country Code. You can see different headers like Parent Domain, Logical Datatype,
Primary Key, Foreign Key, Logical Only.
Select the parent domain as string and by default logical datatype becomes varchar2(20). Change the datatype to
varchar2 (2); Click the check box near the primary key.Similarly create another column Country Name with parent
domain as string and datatype as varchar2 (50). Select NULL OPTION as NOT NULL from the NULL OPTION list
box. THERE ARE DIFFERENT TABS LIKE General, Constraint, Link, Key Groups, Style, Definition, Where Used, UDP,
Notes etc. To create constraints, you can use constraint tab. To create indexes, you can use key groups tab. For
typing attribute definition you can use definition tab. For changing font size, font name, font color, you can use style
tab. For seeing the properties like event, date created, created by, data modified, modified by, you can use Notes
tab. Click ok, and now you will be having 2 attributes Country Code, and Country Name under the entity Country in
the current logical workplace.
Create another entity Bank with two attributes namely Bank Code and Bank Name.
In order to relate these two tables country, bank, a Foreign Key relationship must be created. To create a Foreign
Key relationship, follow these steps.
Click the symbol Non Identifying Relationship from Toolbox Toolbar.
Place the cursor on the entity Country.
Place the cursor on the entity Bank. Now you can see the relationship (a line drawn from Bank to Country)
between Country and Bank. Double click on that relationship line to open Relationships wizard and change the
option from Nulls Allowed to No Nulls since bank should have a country code.
The Logical Data Model created by following the above steps looks similar to the following diagram.
SAVE: To save the file, click save button in the standard tool bar and save it as .CA_Erwin_Data_Modeler_v9_example
and file type will be .erwin.

How to create a Physical Data Model using CA Erwin Data Modeler Version 9?
Change the view from Logical to Physical from the drop down list.
If you want to add some physical properties, you can add it here.

Explanation:
In the logical view: When you right click and view entity properties for entity Country, you can see tabs like volumetrics,
definition, style, icon, where used, UDP, NOTES etc. The information that you fill will explain about entity properties.

In the physical view: when you right click and view table properties for table country, you can see tabs like table options,
general, partitions, supplemental logging, validation, materialized view log, style, icon, synonym comment, object creation
order, where used, UDP, Notes etc.
If you are an expert, then you can fill relevant details in the above mentioned tabs so that it will be useful while creating
scripts. If you are not an expert, you can discuss with DBAs, get relevant information and fill details.

How to generate DDL(sql) scripts to create a database using CA Erwin Data Modeler
Version 9?
Click menu edit. Navigate to selection and click select all. Objects bank and country will be highlighted.
Click the forward engineer schema generation icon in the database tool bar. A new Wizard appears.
There are two boxes. On the left side box, you can several database objects. On the right side box, you can see
different options for each object.

Left Side Box

Right Side Box

Database

Do not select anything

Schema

Do not select anything

Storage

Do not select anything

Table

1) Check table under 'create' option

Materialized View Log

Do not select anything

Column

Do not select anything

Materialized View

Do not select anything

View

Do not select anything

Index

Do not select anything

Referential Integrity

1) Check 'create/pk' under 'primary key/pk';


2) Check 'create/fk' under 'foreign key (FK)'

Trigger

Do not select anything

Other Options

Click 'constraint name'

Click preview. You can see the sql code generated by Erwin data modeler tool.
CREATE TABLE Country ( Country_Code VARCHAR2(2) NOT NULL ,
Country_Name VARCHAR2(50) NOT NULL ,
CONSTRAINT XPKCountry PRIMARY KEY (Country_Code) );
CREATE TABLE Bank ( Bank_Code VARCHAR2(2) NOT NULL ,
Bank_Name VARCHAR2(50) NOT NULL ,
Country_Code VARCHAR2(2) NOT NULL ,
CONSTRAINT XPKBank PRIMARY KEY (Bank_Code),
CONSTRAINT Country_to_Bank FOREIGN KEY (Country_Code) REFERENCES Country (Country_Code) );

Next Creating a Logical Data Model using Erwin

Related Posts
Creating a Logical Data Model using Erwin
Creating a Physical Data Model using Erwin

Reverse Engineering a Data Model


Data Modeling Tools: What to Learn?
Data Modeling Tools Xcase
Software Testing Tutorial
(Visited 9,633 times, 22 visits today)
tagged with All Fusion Erwin Data Modeler, Creating a Logical Data Model using ER Studio, Data Modeling Tool Erwin, Data
Modeling Using Erwin, Erwin, Erwin Data Model, Erwin Data Modeler, Erwin Data Modeling Tutorial, erwin logical data
model, erwin physical data model, Erwin Tutorial, modeling using erwin
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

DATA MODELING TOOLS XCASE


July 16, 2015
learndmdwbi
Leave a comment

Xcase Overview:
Xcase is a powerful and intuitive data modeling tool. It automates database creation and maintenance, making the
modeling process simple and visual. The tool provides tight support for the leading DBMS and an impressive set of
capabilities.
Using Xcase, data modelers can create data models from scratch or from existing databases using the Reverse
Engineering module. Once the model is complete, Xcase Forward Engineering module generates all the DDL scripts
necessary to create a new database or update an existing one.

Using Xcase, you can:


Create Professional Data Models from scratch.
Reverse Engineer existing database structures.
View and organize the database structure at different levels of depth.
Communicate effectively with clients and colleagues.
Fully control database Metadata within the model and add user defined attributes for each object.

Manage different versions of your model/database using the advanced Version Control module compare a
model to the actual database, to another model or to a previous version of the same model and generate a detailed
report of all discrepancies found.
Synchronize your model with the database using the 2-way synchronization feature. Xcase provides a detailed
report on discrepancies found between the model and the database and allows you to update the model based on the
actual database structure or update the database based on your model.
Automatically generate all the code necessary to create and maintain the database without jeopardizing existing
data.
Validate the data in the database against the business rules defined in the model.

Access and edit the data relationally using automatic parent/child browsers and lookups.
Migrate the database metadata and data from one DBMS to another.
Note: For more information, refer the Xcase data modeling web page.

Related Posts
Data Modeling Tools: What to Learn?
Creating a Physical Data Model using Erwin
Advantages of Business Process Management
Data Modeling Tools
Erwin Tutorial
Steps to create Data Model
(Visited 366 times, 1 visits today)
tagged with data modeling tool xcase, Data Modeling using xcase, xcase data modeling
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

Home

Big

HTML5

Data

AdChoices

Database Tools

SQl & Non-SQL

MS Excel

Databases

Visio 2007

Software

Basics

Tools

Visio Diagram

Microsoft Visio Big Data


What is Big Data?

Visio

HTML 5

Visio, can be used to design complex ER diagrams and it comes in three different editions (i.e)

HTML 5 - Overview

Visio Standard 2003, Visio Professional 2003, and Visual Studio .NET 2003 Enterprise Architect.

HTML 4 vs HTML 5

These editions have different commands associated with data modeling and for differences and

HTML 5 - New Features

features between these editions, please visit www.microsoft.com.

Visio & Data Models

Databases
Databases - Overview

Create a database model or ER diagram from scratch.


Import a database or ER model from another modeling diagram.
Import Erwin ERX file.
Import Visio Modeler .IMQ file.

Oracle 12c Installation


Create Database in
Oracle 12c
Excel Tutorial

Create a database model or ER diagram: You can create tables, columns, foreign key
relationships, data types, indexes, views, extended properties for tables, views, check clauses,
stored procedures and triggers.
Reverse engineer an existing database: By using already installed Visio drivers, you can connect
to IBM DB2 Universal Database, Informix, Online/SE Server, Microsoft Access, Microsoft SQL
Server, ODBC Generic Driver, Oracle Server, Sybase Adaptive Server Enterprise etc.
Forward engineer an existing database.

Microsoft Excel 2013 Overview


Features & Functions
Function Vs Formula
Functions using
Operators
Logical Functions
DATE/TIME Functions
Lookup Functions
More Topics
AdChoices

Microsoft Visio - Overview

Creating a Data Model using Visio

Database Design
Informix Database
MS Visio
Software Tools
Microsoft Visio - Tutorial
Basics
Information Technology
Operating System
Server
Mainframe
Computer Networking
C Language
XML Language
Testing
EAI
ERP - Overview
ERP Tools
Oracle Apps - Overview
Oracle Apps
Implementation

Privacy Policy | Disclosure Policy | Copyright 2005 IToverview.com. All Rights Reserved.

Home

Big

HTML5

Data

AdChoices

Visio

SQl & Non-SQL

MS Excel

Databases

Database Tools

Software

Basics

Tools

ER Diagram

Data Modeling Big Data


What is Big Data?

Create a Data Model using Visio


Follow these simple steps to create a data model with two entities.
1. Open Visio software.
2. On the left hand side, under Choose Drawing Select Type, click the category "Database". Click
the template "Database Model Diagram".
3. Alternate way of opening is to go to "File" menu. Click New and then click "Choose drawing
type". Out of the several options displayed, click "Database Model Diagram".
4. This will take you to a workplace where data model will be created. This workplace has got
different panes. On the left hand side, you can see the different icons for creating entity,
relationship, view etc. The grid is the place where you are going to drag and drop these icons to
create the data model.
5. Below that, in "Database Properties" tab, you can see the categories for creating Tables,
Columns, Primary IDS, Indexes, Triggers, Check, Extended Notes etc. If you don't see the
Database Properties tab then, double click on the table. This will open the Database Properties
window. Drag that window in such a way that it positions itself at the bottom of the grid.
6. To create a Table, click the icon 'Entity' and drop it on the workplace. Under Category, place the
cursor on the category 'Definition'. Change/Type the conceptual name(logical name) and
physical name(table name) as 'COUNTRY'. As per your business requirements, you can enter
metadata in name space, owner, source database and defining type.
7. To create a Column, place the cursor on the category "Columns". Type column name as
"COUNTRY_CODE". Select the data type or type your datatype as VARCHAR(10). Select the option
Primary Key to identify attribute "COUNTRY_CODE" as the primary key. If you want to edit the
column or need to add more properties to the column, place the cursor on the column
'COUNTRY_CODE'. Click edit and you can edit or add more properties like definition, datatype,
collection, extended, check, extended, notes.
8. Follow the same approach to create another column "COUNTRY_NAME". Type datatype as
VARCHAR2(50), check "Required" option and do not select the primary key option. Now you will
be having two columns COUNTRY_CODE, and COUNTRY_NAME under the table "COUNTRY" on
the grid.
9. Create another table "BANK" with two columns namely BANK_CODE and BANK_NAME by
following steps 5 through 7.
10. In order to relate these two tables(COUNTRY & BANK), a Foreign Key relationship must be
created. To create a Foreign Key relationship, follow these steps.
11. Drag the "Relationship" icon and drop it on BANK_CODE column. Now you can see the

HTML 5
HTML 5 - Overview
HTML 4 vs HTML 5
HTML 5 - New Features
Databases
Databases - Overview
Oracle 12c Installation
Create Database in
Oracle 12c
Excel Tutorial
Microsoft Excel 2013 Overview
Features & Functions
Function Vs Formula
Functions using
Operators
Logical Functions
DATE/TIME Functions
Lookup Functions
More Topics
AdChoices

Microsoft Visio 2010


Database Design
SQL Tutorial
Software Tools
Microsoft Visio - Tutorial
Basics
Information Technology
Operating System
Server

relationship i.e a line drawn from Bank. Now drag that arrow until you drop it on the

Mainframe

COUNTRY_CODE column of COUNTRY table. When you did that, you can see a new column

Computer Networking

"COUNTRY_CODE" in BANK table, that has been inherited from COUNTRY table.

C Language

12. Place the cursor on the relationship and you can edit the database properties of that
relationship.

XML Language
Testing

13. You can give a name, change the cardinality, identifying and non-identifying relationship, etc.

EAI

14. Now the data model is ready and if you have a higher version of Visio, then you can forward

ERP - Overview

engineer the data model to create DDL scripts for creating a database.

ERP Tools
Oracle Apps - Overview
Oracle Apps
Implementation

Visio & Data Modeling

Privacy Policy | Disclosure Policy | Copyright 2005 IToverview.com. All Rights Reserved.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

HOW TO ADD IDENTIFYING, NON-IDENTIFYING, SELF-RECURSIVE RELATIONSHIP IN ER STUDIO DATA


ARCHITECT?
October 1, 2014
learndmdwbi
Leave a comment

Now, we are going to make changes to the previously created data model. So create another file
LDM_creating_entity_version2. Open the previous data model LDM_creating_entity_version1 and click menu file/save as
LDM_creating_entity_version2.
How to add entity and attributes in ER Studio Data Architect:
Add the following attributes to Employee Entity. Place the cursor in attribute section of Employee Entity, right click edit
entity. Click attributes tab and add the following attributes.
Employee Name with data type as Varchar(50); NOT NULL;
Incentive Indicator with datatype as Char(10); NOT NULL;
Phone Number with datatype as Char(12); NULL;
You can use UP or DOWN arrow keys to align the attributes.
Create another entity Address with Address Identifier as attribute, datatype as Integer and Address identifier as primary
key.
Address ID should be a sequence number.
How to create a sequence number in ERStudio Data Architect:
When you add an attribute, you can see a section Identity Property. Click the check box in Identity column.
Type 1 for seed and 1 for increment. Seed means the starting number of the sequence and increment means how it has to
be incremented.
Create another entity Employee-Address with no attributes. We will explain how to add attributes below.
How to add non-identifying relationship in ER studio data architect?
Department entity to Employee entity:
Many employees can work in one department. One-to-many relationship. Hence we can create this relationship by NonIdentifying Relationship.
Click menu Insert/Relationship/Non-Identifying mandatory:
Click the cursor on Department Entity and then on Employee Entity.
Now you can see the non-identifying relationship between department entity and employee identity.
A new attribute Department Number is added to employee entity.
How to add identifying relationship in ER studio data architect?

Employee entity and Address entity: One employee can stay in many addresses.
One address can contain many employees.
Many to many relationship: Identifying relationship
Create address entity with address id as the primary key.
Click menu Insert/Relationship/Identifying
Click the cursor on employee entity and employee address entity. Again click on address entity and then on employeeaddress entity.
Now you can see the identifying relationship in employee address entity.
Two new attributes employee number, and address identifier are added as primary keys to employee-address entity. Since
two keys are there, it is called as composite primary keys.
How to add self-recursive relationship in ER studio data architect?
To connect relationship between an employee and a manager: There is no attribute which references the employee
number in the employee entity. So we will create a new attribute Manager Number by using self-recursive relationship.
When we want to create an attribute in an entity that references the same primary key attribute, we have to create role
name, because, two attributes cannot have the same name in the same table.
In this example, the parent entity and child entity are same (employee entity).
Click menu Insert/Relationship/Non-Identifying mandatory
Click the cursor on employee entity twice. You can see a new screen. Type role name as manager number.
You can see a new attribute manager number in employee entity.
If you want to know more about the relationship, click each relationship line and you can see different options.

Related Posts
How To Create A Logical Data Model In ER Studio Data Architect?
Creating a Logical Data Model using Erwin
How to create a physical data model from a logical data model using Embarcaderos Data Architect?
How To Create Naming Standards In Embarcaderos Data Architect?
Data Modeling Tools: What to Learn?
Creating a Physical Data Model using Erwin
(Visited 257 times, 1 visits today)
tagged with how to add identifying relationship in in ER Studio data architect, how to add non-identifying relationship in ER
Studio data architect, how to add self-recursive relationship in ER Studio data architect, how to create a role name in ER
Studio data architect
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

HOW TO ADD IDENTIFYING, NON-IDENTIFYING, SELF-RECURSIVE RELATIONSHIP IN ER STUDIO DATA


ARCHITECT?
October 1, 2014
learndmdwbi
Leave a comment

Now, we are going to make changes to the previously created data model. So create another file
LDM_creating_entity_version2. Open the previous data model LDM_creating_entity_version1 and click menu file/save as
LDM_creating_entity_version2.
How to add entity and attributes in ER Studio Data Architect:
Add the following attributes to Employee Entity. Place the cursor in attribute section of Employee Entity, right click edit
entity. Click attributes tab and add the following attributes.
Employee Name with data type as Varchar(50); NOT NULL;
Incentive Indicator with datatype as Char(10); NOT NULL;
Phone Number with datatype as Char(12); NULL;
You can use UP or DOWN arrow keys to align the attributes.
Create another entity Address with Address Identifier as attribute, datatype as Integer and Address identifier as primary
key.
Address ID should be a sequence number.
How to create a sequence number in ERStudio Data Architect:
When you add an attribute, you can see a section Identity Property. Click the check box in Identity column.
Type 1 for seed and 1 for increment. Seed means the starting number of the sequence and increment means how it has to
be incremented.
Create another entity Employee-Address with no attributes. We will explain how to add attributes below.
How to add non-identifying relationship in ER studio data architect?
Department entity to Employee entity:
Many employees can work in one department. One-to-many relationship. Hence we can create this relationship by NonIdentifying Relationship.
Click menu Insert/Relationship/Non-Identifying mandatory:
Click the cursor on Department Entity and then on Employee Entity.
Now you can see the non-identifying relationship between department entity and employee identity.
A new attribute Department Number is added to employee entity.
How to add identifying relationship in ER studio data architect?

Employee entity and Address entity: One employee can stay in many addresses.
One address can contain many employees.
Many to many relationship: Identifying relationship
Create address entity with address id as the primary key.
Click menu Insert/Relationship/Identifying
Click the cursor on employee entity and employee address entity. Again click on address entity and then on employeeaddress entity.
Now you can see the identifying relationship in employee address entity.
Two new attributes employee number, and address identifier are added as primary keys to employee-address entity. Since
two keys are there, it is called as composite primary keys.
How to add self-recursive relationship in ER studio data architect?
To connect relationship between an employee and a manager: There is no attribute which references the employee
number in the employee entity. So we will create a new attribute Manager Number by using self-recursive relationship.
When we want to create an attribute in an entity that references the same primary key attribute, we have to create role
name, because, two attributes cannot have the same name in the same table.
In this example, the parent entity and child entity are same (employee entity).
Click menu Insert/Relationship/Non-Identifying mandatory
Click the cursor on employee entity twice. You can see a new screen. Type role name as manager number.
You can see a new attribute manager number in employee entity.
If you want to know more about the relationship, click each relationship line and you can see different options.

Related Posts
How To Create A Logical Data Model In ER Studio Data Architect?
Creating a Logical Data Model using Erwin
How to create a physical data model from a logical data model using Embarcaderos Data Architect?
How To Create Naming Standards In Embarcaderos Data Architect?
Data Modeling Tools: What to Learn?
Creating a Physical Data Model using Erwin
(Visited 257 times, 1 visits today)
tagged with how to add identifying relationship in in ER Studio data architect, how to add non-identifying relationship in ER
Studio data architect, how to add self-recursive relationship in ER Studio data architect, how to create a role name in ER
Studio data architect
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

HOW TO CREATE NAMING STANDARDS IN EMBARCADEROS DATA ARCHITECT?


October 1, 2014
learndmdwbi
Leave a comment

Create a .csv file named Naming_Standards.csv and store the following information in that csv file. The reason for
creating this file is to avoid errors and typos in our naming conventions and data modeling naming convention standards
can also be followed. We have eliminated VOWELS in the actual word so that physical object names will not exceed the
actual length provided by the database. Later this file will be created in .nst format (embarcaderos naming standards
format) and has to be attached to the physical data model that we will create in the next section. This file (.nst) can be
attached to all data models created across the enterprise.
Note: We are not providing naming standards for logical data model.
Step1: Creating .csv file and storing it as Naming_Standards.csv
Open your Microsoft Excel and type the following data. Then store it in .nsv format.
DEPARTMENT

DPRTMNT

NUMBER

NMBR

NAME

NM

ADDRESS

ADDRSS

IDENTIFIER

IDNTFR

EMPLOYEE

EMPLY

MANAGER

MNGR

SALARY

SLRY

DATE

DT

OF

OF

JOINING

JNNG

PHONE

PHN

NUMBER

NMBR

INCENTIVE

INCNTV

INDICATOR

INDCTR

Step2: Creating .nst file and storing it as Enterprise_Naming_Standards.nst

Open existing logical data model 02_LDM_creating_entity_version2


Click menu Tools/Naming Standards Template Editor.
A new screen appears.
On top of the screen, there are four different tabs. Name, Logical, Physical, and Mapping.
Under name tab: type the file name as enterprise_naming_standards.
Under Logical tab, you can change max length of entity, attribute, view, key, relationship. Select case as upper for entity.
Under physical tab, you can change you can change max length of entity, attribute, view, key, relationship. You have to
change the length as per the target database standards. Select case as upper for table.
Under mapping tab, click import. Select the file naming_standards.csv.
In mapping tab, below the screen there are three tabs abbreviations, order, and general. Click general tab.
Since we will be placing underscore between each word of the column, type _ in physical word separation under heading
delimiter options.
Click save. Save the file as enterprise_naming_standards.nst

Related Posts
How to create a physical data model from a logical data model using Embarcaderos Data Architect?

How To Create A Logical Data Model In ER Studio Data Architect?


How to add identifying, non-identifying, self-recursive relationship in ER Studio Data Architect?
Creating a Physical Data Model using Erwin
Creating a Logical Data Model using Erwin
Data Modeling Interview Questions
(Visited 307 times, 1 visits today)
tagged with How to create naming standards in Embarcaderos Data Architect, how to enforce naming standards in
Embarcaderos Data Architect
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

LearnDataModeling.com

Tutorial on Data Modeling, Data Warehouse & Business Intelligence!

MENU

SIDEBAR

CREATING A PHYSICAL DATA MODEL USING ERWIN


July 16, 2015
learndmdwbi
Leave a comment

How to create a Physical Data Model using Erwin 4.1.4 version?


1: Change the view from Logical to Physical from the drop down list.
2: Click Database from main menu and then click Choose Database from the sub menu. Then select your target
database server where the database has to be created. Click ok.
3: Place the cursor on the table Country and right click it. From the displayed menu, click columns which will take you to
the column wizard. Click the Database Tab, which is next to General Tab and assign datatypes VARCHAR2(10),
VARCHAR2(50) for columns COUNTRY_CODE and COUNTRY_NAME respectively. Change the default NULL to NOT NULL for
the column COUNTRY_NAME. Similarly, repeat the above step for the BANK table. Once you have done all of these, you can
see the physical version of the logical data model in the current workplace.
The Physical Data Model created by following the above steps looks similar to the following diagram.

How to generate DDL(sql) scripts to create a database?


1: Select the view as <b>Physical</b> from the drop down list.

2: Click Tools from main menu and then click Forward Engineer/Schema Generation from the sub menu which will take
you to the Schema Generation Wizard. Select the appropriate properties that satisfies your database requirements like
schema, table, primary key etc. Click preview to see your scripts. Either you can click to generate the table in a database or
you can store the scripts and run against the database later.

The DDL(sql) scripts generated by Erwin by following the above steps looks similar to the following script.
CREATE TABLE Country(Country_Code VARCHAR2(10) NOT NULL,
Country_Name VARCHAR2(50) NOT NULL,
CONSTRAINT PK_Country PRIMARY KEY (Country_Code));
CREATE TABLE Bank(Bank_Code VARCHAR2(10) NOT NULL,
Bank_Name VARCHAR2(50) NOT NULL, Country_Code VARCHAR2(10) NOT NULL,
CONSTRAINT PK_Bank PRIMARY KEY(Bank_Code) );ALTER TABLE Bank ADD( CONSTRAINT FK_Bank
FOREIGN KEY (Country_Code) REFERENCES Country );

Note: This is not a complete tutorial on Erwin. We will add more Tips and Guidelines on Erwin in near future. Please visit
us soon to check back. To know more about Erwin, contact its official website www.ca.com.

Related Posts
Erwin Tutorial
Creating a Logical Data Model using Erwin
How To Create A Logical Data Model In ER Studio Data Architect?
How to create a physical data model from a logical data model using Embarcaderos Data Architect?
Data Modeling Tools: What to Learn?
Data Modeling Tools
(Visited 3,819 times, 14 visits today)
tagged with Creating a Physical Data Model using Erwin, erwin physical data model, Erwin Physical data Modeling, Erwin
Physical data modeling and database, how to create physical data model using erwin
Data Modeling Tools

LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment

Name *

Email *

Website

Post Comment

Powered by WordPress and Dynamic News.

Você também pode gostar