Create a View

Create a Database View

Step

Action

See also

1

On the Data Modeling page of the Toolbox (More tools | Data Modeling), drag the View icon onto your Data Modeling diagram.

 

 

2

If the View Properties dialog does not immediately display, double-click on the element.

 

 

3

From the Database drop-down list, select the target DBMS to model.

The default database displays if it has already been set.

 

Set the Database Type

 

4

Click on the OK button.

 

 

5

To rename the View, select the element, press (F2) and type the new name.

 

 

 

Create a View definition

Step

Action

See also

1

Create a Dependency connector from the View to the table or tables on which the View depends.

 

 

2

Double-click on the View to display the Properties dialog.

The tables are now listed in the Dependencies field.

 

 

3

In the View definition field, type the full view definition.

The code editor provides intellisense for basic SQL keywords and functions.

 

Options - Code Editors

Intellisense

4

Click on the OK button to save your definition.

 

 

Example

ExampleofaDatabaseViewDiagram

Notes

The View definition and certain other parameters are held as Tagged Values; the View definition is held in the viewdef memo Tagged Value
 
You can select and view the viewdef Tagged Value in the Tagged Values window, and include it in RTF reports by inserting the valueOf(viewdef) field in the Package::Package Element or Package::Element sections.

Learn more