Table of Contents

Search

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

0 COMMENTS

We’d like to hear from you!