Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Report from two data sources

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Report from two data sources
 Login/Join
 
Member
posted
Hi,

We have a report which has six columns in it. The first three columns are taken from one datasource(TABLE A) and the next three columns are taken from another datasource(TABLE B). The two tables are joined on Column_1. I have given the datasource structure below.
  
                   TABLE-A                      TABLE-2
             Column_1   Column_2          Column_1     Column_3
               AAA         S1               AAA           R1
               AAA         S2               AAA           R2
                                            AAA           R3
                                            AAA           R4


We used the below line to join the two tables.
 JOIN Column_1 IN HOLD_1 TO MULTIPLE Column_1 IN HOLD_2 

The output which we obtained is shown here.
  
            Current_Status              Previous_Status
                 S1                           R1
                 S1                           R2
                 S1                           R3
                 S1                           R4
                 S2                           R1
                 S2                           R2
                 S2                           R3
                 S2                           R4         


But, we need an output as shown below
  
            Current_Status              Previous_Status
                 S1                           R1
                 S2                           R2
                                              R3
                                              R4


Please help us to find a solution for this.
Thankyou,
Ajai.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.1.4,Linux,
HTML,PDF,Excel,CSV
 
Posts: 25 | Location: Chennai | Registered: August 27, 2008Report This Post
Member
posted Hide Post
Maybe you can get the output with joins by turning the RDBMS optimalization of (SQL SQLMSS SET OPTIMIZATION OFF)

However, using MATCH files will do the thing..

MATCH FILE A
PRINT COLUMN_2
BY COLUMN_1
RUN
FILE B
PRINT COLUMN_3
BY COLUMN_1
AFTER MATCH HOLD OLD-OR-NEW
END

TABLE FILE HOLD
PRINT COLUMN_2 COLUMN_3
END


7.6.4
Windows
Excell,HTML,PDF,Dashboard,…
 
Posts: 3 | Registered: December 05, 2008Report This Post
Expert
posted Hide Post
How about SUM instead of PRINT?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Francis,
Some of the columns are having varchar values. Hence we cannot use the SUM command.

Rob,
We were not able to achieve the output using MATCH.

Thanks,
Ajai


WebFOCUS 7.1.4,Linux,
HTML,PDF,Excel,CSV
 
Posts: 25 | Location: Chennai | Registered: August 27, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Report from two data sources

Copyright © 1996-2020 Information Builders