Altair® Panopticon

 

JDBC Database

The JDBC Database connector will only work when it has the appropriate JDBC driver JAR files and JNDI connections.

 

   IMPORTANT

For DolphinDB, the query builder is not supported, only the query mode.

 

 

Steps:

1.     Select JDBC from the Data Sources pane. The JDBC Settings pane and the retrieved JDBC source are displayed.

 

 

2.     Enter the Name of the JDBC data source, then click .

3.     Click Connection Settings to expand and display the properties you can set.

 

4.     You can either select:

 

·         JNDI Name

 

Enter the JNDI resource name to be used.

 

   NOTE

The JNDI resource name needs to be on the form:

jdbc/[resourcename]

 

 

·         URL

Enter the URL specific to the database’s JDBC driver, the Driver Class Name specific to the driver, and the User Id and Password.

Check the Show Characters box to display the entered characters.

5.     Select the appropriate SQL Dialect in the drop-down list to be able to generate the correct SQL for the required data repository.

You can select any of the following SQL dialects: AnsiSQL, Access/Excel, MySQL, Oracle, SQL Server, Sybase IQ/ASA, Sybase ASE, Netezza, Vertica, SQLite, HadoopHive, KxQ, DB2, PostgreSQL, Impala, Redshift, Informix, Teradata, dBase, SparkSQL.

Default is AnsiSQL.

6.     Enter the Timeout. Default is 60.

7.     Check any of the following options when building the query:

·         Enclose parameters in quotes

By default, this option is checked, as the common use case for parameters is a filter WHERE clause.

·         Allow in-memory parameter filtering

Allows the whole dataset to be returned, and then filtered in memory. This process is much less efficient than adding the parameter as a WHERE clause of the SQL query; however, it may be efficient in cases where small sets of records are returned on a very frequent basis.

·         Use data modification query

Signals that the table is created for writing data. This property is also used for filtering out target data tables for further data update action configuration

·     Enable on-demand queries

On-demand queries provide ROLAP functionality to the Altair Visual Data Discovery products, where the aggregation and filtering tasks are largely offloaded to the underlying data repository.

8.     When Table is selected, the section below is enabled:

 

9.     On the Table field, click  to populate the drop-down list with tables. Select a table.

The SQL query is generated and displayed in the Query text box.

Also, expanding the Join Tables displays the list of tables that you can join.

 

Use Search Tables to filter the list.

 

10.   Perform a join by checking one or more tables in the list.

The Left Column and Right Column fields are automatically filled out with the common fields.

 

You can also opt to select other common fields.

The SQL query is generated and displayed in the Query text box.

 

11.   Click . The columns populate the Output Column section.

12.   Individual columns can be added by checking the corresponding Column box in the Output Column listing. To select all of the columns, check the topmost box.

The SQL query is generated and displayed in the Query text box.

13.   If the data returned is to be aggregated, then the Aggregate box should be checked. For each selected column, the possible aggregation methods are listed including:

·         Text Columns: Last, First, Count, Group By

·         Date Columns: Count, Min, Max, Group By

·         Numeric Columns: Last, First, Sum, Count, Min, Max, Mean, Group By

The SQL query is generated and displayed on the Query text box.

14.   Check the Parameterize box and match the parameter to the appropriate column. By default, they will be matched by name.

The appropriate SQL Query is updated in the Query text box.

15.   If the data is to be filtered or aggregated on Date/Times, then a valid Date Time field needs to be selected from either a single Date/Time field, or a compound column created from a selected Date and a selected Time column.

16.   Click the Query radio button to enable the text box and modify the SQL-like query language.

17.   Date/Time values of output data and Date/Time inputs, where supported, is by default unchanged.

You can opt to define the Show in Timezone and Source Timezone settings.

18.   Set the row limit of the data set.

19.   Tap the Preview Selected Data Source slider to turn it on.

20.   Click  to display the data preview.