Here in this section, we will create a physical data model instead of starting from logical data model, since we can cover most of the features of a data modeling tool in the physical data model. Please refer our sections listed under Data Modeling Topic Logical Data Modeling and Data Modeling Tool – Erwin for creating a logical data model.
EMPLOYEE | TITLE | DEPARTMENT | PROJECT | EMPLOYEE_PROJECT |
---|---|---|---|---|
Employee_No (PK) Employee_Name Manager_No (FK) Title_Code (FK) Department_No (FK) | Title_Code (PK) Title_Description | Department_No (PK) Department_Name | Project_Code (PK) Software_Used | Employee_No (FPK) Project_Code (FPK) |
On the tool bar, you can see a list box which displays Captions (Logical Data Model, Names (Physical Data Model) and Full Names. Select Names.
NOTE: Give proper names to TABLES, COLUMNS, PRIMARY KEYS, FOREIGN KEYS, INDEXES etc. and all other database objects as per the standard maintained by the data modeling team and database team.
Column Name | Constraint Name | Data Type |
---|---|---|
Department_No | Primary Key | Integer |
Department_Name | NOT NULL | VARCHAR2 (30) |
Similarly create tables TITLE and PROJECT and add columns to those tables.
Column Name | Constraint Name | Data Type |
---|---|---|
Title_Code (PK) | Primary Key | Integer |
Title_Description | NOT NULL | VARCHAR2 (30) |
Column Name | Constraint Name | Data Type |
---|---|---|
Project_Code (PK) | Primary Key | Integer |
Software_Used | NOT NULL | VARCHAR2 (30) |
Similarly create table EMPLOYEE with Employee_No as the primary key and Employee_Name as the column. Later we will add other columns.
Column Name | Constraint Name | Data Type |
---|---|---|
Employee_No (PK) | Primary Key | Integer |
Employee_Name | NOT NULL | VARCHAR2 (30) |
Learn data modeling design Skills on OLTP and OLAP from a US University Professor with…
These SQL commands are related with Oracle's data dictionary and can be used to get…
important DDL Statements from Oracle like Commit, Rollback, Grant, Revoke etc..
In this section, we will try to explain about important database DROP commands that are…
In this section, we will try to explain about important database DML commands that are…
In this section, we will try to explain about important database ALTER commands that are…