You can add a SQL view to create a view on multiple tables in the same database. You can add a WHERE clause to filter the records from each table and configure which columns appear in the SQL view.
Click
File
New
SQL View
.
The
SQL View Editor
dialog box appears.
Enter a description for the SQL view.
Click
Add Table
in the
Table Definitions
area.
The
Choose Data Source
dialog box appears.
Select the table and click
Select
.
To filter the available tables, enter a search string in the
Search
field.
Select at least one more table to include in the SQL view.
To change a table alias name, double click the table alias name in the
Alias
column.
By default, the table alias name is the same as the table name.
To delete a table from the SQL view, select the table and click
Delete Table
.
Select a connection to the database that contains the tables included in the SQL view.
To add columns from the tables to the SQL view, click
Select Columns
in the
Column Definition
area.
The
Output Fields
dialog box appears.
To add columns to the SQL view, add the columns in the
Available Fields
pane to the
Selected Fields
pane.
Click
OK
.
The columns appear in the
Column Definition
area of the
SQL View Editor
dialog box.
To create a custom column, click
Insert Column
in the
Column Definition
area.
The
SQL View Column Definition Editor
dialog box appears.
Enter the name, datatype, precision, and scale for the custom column, and then click
Save
.
The custom column appears in the
Column Definition
area of the
SQL View Editor
dialog box.
To change the order of the columns, select a column and click
Move Up
or
Move Down
.
Enter the SQL statement that creates the SQL view based on the columns in the