Create JNDI Data Source

After the JNDI connection is created, the data sources can be created for the connection as follows:

  1. In Sigma Studio, click Connections on the left pane.
    The existing connections are listed in the Connections List on the right pane.
  2. Right-click the connection and select Manage Data Sources.



  3. In the Manage Data Sources screen, click Create Data Source.


    The Create New Data Source page appears.

  4. In the Create Data Source page, enter an unique data source name in the Data Source Name field.

  5. Enter the table name from which you want to fetch data in the Table Names field. You can enter multiple table names separating each table name with a comma (see second code snippet in Step 8).

    Alternatively, you can specify view name instead of the table name in the Table Names field. For example, if suppose you have created a database view as follows:

    create view Products_Above_Average_Price as
    select Product_Name, Unit, Price
    from Products
    where Price > (select avg(Price) from Products);

    In the SQL code snippet, Products_Above_Average_Price is the view name, which you can enter in the Tables Names field.

  6. Enter either * (asterisk) or column names separated by comma in the Column IDs field.
  7. Optional: Enter the column names by which you want to sort the data in ascending or descending order in the Order By field.
  8. Optional: Enter the condition for filtering the data in the Where Clause field. For example, in the SQL code snippet mentioned in step 5, the where condition Price > (select avg(Price) from Products) can be given in the Where Clause field.

    If suppose, you want to fetch data based on certain values, you will have to specify the exact values in the Where Clause field. For example, consider the following SQL query:

    select * from Products
    where Product_ID = 'P001'

    Here, Product_ID = 'P001' can be given in the Where Clause field.

    Consider another example as follows:

    select Product_Name, Unit, Price
    from Products, Categories
    where Products.Category_ID = Categories.Category_ID
    and Categories.Category_ID = 'C001'

    Here, Products.Category_ID = Categories.Category_ID and Categories.Category_ID = 'C001' is the where condition, which can be specified in the Where Clause field. The tables Products, Categories can be specified in the Table Names field.

  9. Click Save.
    The following confirmation message appears:



Copyright © Intellect Design Arena Limited.

All rights reserved. These materials are confidential and proprietary to Intellect Design Arena Limited and no part of these materials should be reproduced, published in any form by any means, electronic or mechanical including photocopy or any information storage or retrieval system nor should the materials be disclosed to third parties without the express written authorization of Intellect Design Arena Limited.