An SQL expression can be added to a TVD connector, allowing data in a TSDB to be transformed into a value which is appropriate for your model. For example, you may use an expression to apply a rating curve or fill in missing data in the data stream (overriding the usual priority order of the three input data streams). Any SQL expressions will be automatically evaluated during an appropriate Run.
To add an SQL expression to a TVD connector
The TVD Connector - SQL Expression Dialog topic contains a list of the functions and operators which can be included in the expression.
If you are using the editor, then:
You can use the Field dropdown list to select the database fields for the TVD connector that you want to include in the expression. The functions and operators which can be included in the expression are listed in the TVD Connector - SQL Expression Dialog topic.
If the test is unsuccessful, then you may need to edit the expression. If it is successful:
The saved expression is now displayed in the Output expression field.
To test that the expression contains valid SQL functions and operators
If the expression is valid, a window containing the results of evaluating the expression, is displayed.
Example of a Results Window for a Valid Expression
However, if the expression is invalid, a suitable warning message will be displayed in the window.
Example of a Results Window for an Invalid Expression