Data Access User Manual > Data Access and SQL > SQL Data Sources > Working with an SQL Data Source > Defining Columns
 
Defining Columns
When you add a database table to a data source, you can tie the columns of the table to the columns of the data source table. This can either be done graphically or manually in the data source inspector.
The graphical method is described in the Rogue Wave Views Data Access Getting Started Manual. To specify the column that should be selected from a database manually, you can type directly in the Select and From cells in the appropriate column in the SQL Data Source inspector.
If you just want to select a particular column from a database, enter the name of the column in the Select field and the name of the database table in the From field. If you have entered the column and database table name correctly, the data source table will then be updated accordingly.
It is also possible to specify a column in the data source table that is the result of a calculation carried out on data from other table columns. This is possible within the limits of the formulas that are accepted by the database. See your database documentation for more information on the formulas that can be used.
Specifying a Computed Column
To set up a column like this, click in the Select cell and enter the formula that you require. The From cell must remain empty. If there is a database table name in the From cell, Data Access tries to locate a column that has the name specified in the Select cell.

Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.