This article describes how to create a view.
A view is a stored query accessible as a virtual table composed of the result set of queries. Unlike ordinary tables (base tables) in a relational database, a view is not part of the physical schema: it is a dynamic, virtual table computed or collated from data in the database. Changing the data in a table alters the data shown in the view. The result of a view is stored in a permanent table whereas the result of a query is displayed in a temporary table.
Views provide advantages over tables:
- Views can segment the data contained in a table
- They can join and simplify multiple tables into a single virtual table
- Views can act as aggregated tables, where aggregated data (sum, average etc.) are calculated and presented as part of the data
- Views take very little space to store; only the definition is stored, not a copy of all the data they present
- Views can limit the exposure to which a table or tables are exposed to the outer world
Follow these steps to create a view:
- Select the Views Tab from the primary toolbar.
- Select New from the secondary toolbar.
- Fill-in the Name.
- Fill-in the Description (optional)
- Select the Tables from the Unassociated Tables, click the right arrow to move to the Associated Tables
- Click Submit.
- Click Columns.
- Select from the TableColumns dropdown to select fields to display.
- Fill-in Alias name to display on the view (if left blank, the TableColumn field name will be displayed).
- Click Add.
- Click Submit.
- Select Joins to establish the relationship between the tables selected.
- In the LeftTableColumn, select a TableColumn of one table.
- In the RightTableColumn, select a TableColumn of a second table.
- Click Submit.
- Select Close.
- Open the View just created.
- Highlight the name of the view created.
- Click Open.
- A view of the information will display.