A view table is a view of an existing table. A view table never actually exists physically but rather is formed by the database system from the rows of the underlying table(s).
You are logged on to the database as a database user.
You have the SELECT privilege for all columns that you want to include in the view table.
More information: SQL Reference Manual, Privilege Specification (priv_spec)
The database is in the ONLINE operational state.
In the explorer tree, select the table that you want to use as the basis for the view table.
In the context menu of the table, choose
Enter the following data:
Property |
Description (Link to SQL Reference Manual) |
---|---|
View Name |
The same rules as for table names apply: Table Name (table_name) |
Schema |
|
Check on Insert and Update |
If this option is set, you cannot use INSERT or UPDATE statements on the view table to generate any rows that can afterwards no longer be selected via the view table. Resulting rows must fulfill the view table's search condition. The option is inherited. This means that, if you have defined a view table VIEWTABLE1 with this option and are using VIEWTABLE1 in the FROM condition of a modifiable view table VIEWTABLE2, then only rows that can be selected using VIEWTABLE1 may be added or modified with VIEWTABLE2. |
Replace Existing View |
If you choose these option, the view table replaces a previously existing view table. |
To copy the columns that you want to display in the result view, drag them to the Query Columns area.
Optional: In the Query Columns area, enter search conditions and other attributes of the result view.
Property |
Description |
---|---|
Synonym |
Synonym for the column name in the result view |
Visible |
Column is displayed in the result view. |
Order |
Listing of column values in the result view |
Predicate |
Search condition
More information: SQL Reference Manual, |
In the context menu of the editor window, choose Execute.
You become the owner of the view table. For information about the privileges that the owner of the table view has, see SQL Reference Manual under INSERT-/UPDATE/DELETE Privilege for Owners of the View Table.
SQL Reference Manual, CREATE VIEW Statement (create_view_statement)