Create a View

How To:

To create a database View, follow the steps below:

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

 

4

Click on the OK button

 

5

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

 

 

To create the View definition, follow the steps below

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

Code Editor

4

Click on the OK button to save your definition

 

Example:

Example of a Database View Diagram

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: