Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. New Features and Behavior Changes
  4. Repositories
  5. XML Data Source
  6. Tests for XML Data Sources
  7. Connections
  8. Expressions
  9. Table Pairs
  10. Tests for Table Pairs
  11. Single-Table Constraints
  12. Tests for Single-Table Constraints
  13. Examples of Tests from Spreadsheets
  14. SQL Views
  15. Lookup Views
  16. Join Views
  17. Aggregate Views
  18. Business Intelligence and Reporting Tools Reports
  19. Dashboards
  20. DVOCmd Command Line Program
  21. Troubleshooting
  22. Datatype Reference
  23. Reporting Views
  24. Metadata Import Syntax
  25. Jasper Reports
  26. Glossary

Data Validation Option User Guide

Data Validation Option User Guide

Adding an SQL View

Adding an SQL View

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.
  1. Click
    File
    New
    SQL View
    .
    The
    SQL View Editor
    dialog box appears.
  2. Enter a description for the SQL view.
  3. Click
    Add Table
    in the
    Table Definitions
    area.
    The
    Choose Data Source
    dialog box appears.
  4. Select the table and click
    Select
    .
    To filter the available tables, enter a search string in the
    Search
    field.
  5. Select at least one more table to include in the SQL view.
  6. 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.
  7. To delete a table from the SQL view, select the table and click
    Delete Table
    .
  8. Select a connection to the database that contains the tables included in the SQL view.
  9. To add columns from the tables to the SQL view, click
    Select Columns
    in the
    Column Definition
    area.
    The
    Output Fields
    dialog box appears.
  10. To add columns to the SQL view, add the columns in the
    Available Fields
    pane to the
    Selected Fields
    pane.
  11. Click
    OK
    .
    The columns appear in the
    Column Definition
    area of the
    SQL View Editor
    dialog box.
  12. To create a custom column, click
    Insert Column
    in the
    Column Definition
    area.
    The
    SQL View Column Definition Editor
    dialog box appears.
  13. 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.
  14. To change the order of the columns, select a column and click
    Move Up
    or
    Move Down
    .
  15. Enter the SQL statement that creates the SQL view based on the columns in the
    Column Definition
    area of the
    SQL View Editor
    dialog box.
  16. Enter a comment for the SQL view.
  17. Click
    Save
    .