Oracle Views Editor

In a physical model, you can create views, which are SQL queries that are permanently stored in the database under assigned names. The result of a view query is a virtual table. To the database user, a view appears just like a real table with a set of named columns and rows of data. However, a view is not a permanently stored set of data values. The rows and columns of data visible through the view are the result of the database query that defines the view.

You can use views in SQL to:

Views are supported in the following features:

When you add a view to a model, the view graphically appears in the model as a box with a dotted outline and round corners, and a view relationship as a dotted line with circle at the view end of the line. A view relationship between a table, materialized view, or view and a view indicates that the view references one or more of the columns from that table, materialized view, or view.

If you delete a table column that is referenced by a view, you also deletes the corresponding view column. If you delete a table that is referenced by a view, you also delete the corresponding view columns.

Use the Oracle Views Editor to add and change the properties of a view.

You can open the Oracle Views Editor in one of the following ways:

The Oracle Views Editor dialog includes the following tabs:

Select Add tables, views, and materialized views to a view column and create aliases and expressions.

From Specify the source tables, views, or materialized views.

Where Specify the search conditions and criteria to use when you generate the SQL code for a view.

User Defined SQL Change a user-provided DDL statement. This tab will be blank if no override has been provided.

SQL View the SQL code that is used during Forward Engineering.

Constraints Use for entering constraints for a view.

Synonym Create, edit, or delete synonyms that apply to the selected table.

Comment Add or edit comments for a view.

UDP Enter user-defined property values for a view.

The following describes all of the other options available in this dialog:


Copyright © 2009 CA. All rights reserved. Email CA about this topic