|
|
How to create a Physical Data Model:
1: Change the view from "Logical to Physical" from the drop down list. 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 Physical from the drop down list. The DDL(sql) scripts generated by Erwin by following the above steps looks similar to the following script.
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.
Erwin - Logical Data Model |