24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE PHYSICAL MODEL<br />

Removing Unnecessary Tables<br />

Table Merge Denormalization<br />

A table merge denormalization removes unnecessary tables by combining two or more unrelated tables with the same<br />

primary key into a single table containing all tables’ columns.In the following example, all the fields from the jobs table<br />

are merged into the dbo.newjobs table.<br />

To create a new table merge mapping:<br />

1 Display the physical model.<br />

2 Click and drag or CTRL-click to select the tables to be merged.<br />

3 Right-click one of the selected tables and then click Denormalization Mapping > Table Merges.<br />

4 Complete the Table Merge Denormalization Wizard as required.<br />

Notes<br />

• If the Table Merges menu choice is dimmed, check to make sure you have not accidentally selected another table<br />

or some other object.<br />

• The first panel of the wizard is merely informative. If the correct tables are listed, click Next; otherwise, click<br />

Cancel and redo your selection.<br />

Undo a Denormalization Mapping<br />

1 In the Data Model tab of the Data Model Explorer, right-click the mapping (under the Denormalization Mapping<br />

section of the physical model).<br />

2 Select Undo Denormalization Mapping.<br />

before after<br />

NOTE: If the Reflect changes to original tables option was selected for the mapping, any changes made<br />

to the denormalized tables have been propagated to the original tables. Otherwise, undoing the<br />

mapping will restore the original tables in their pre-mapping state.<br />

Synchronizing Physical and Logical Models<br />

After normalizing or denormalizing the model you may want to synchronize it with the real-world database. Using the<br />

Submodel Synchronization Utility, you can see the differences found and decide which changes you want to change.<br />

For more information, see Synchronizing Submodels.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 217

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!