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] webfocus join help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] webfocus join help
 Login/Join
 
Gold member
posted
Hi all,
I am having a little trouble with joining two SQL hold files together in webfocus and I would appreciate it if someone could help.

We have two holdfiles, each containing payroll data. Hold file one contains some demographic information about the employee and overall pay amount. The second hold file contains a bunch of numbers, like sick leave counts, OASI, longevity pay, etc. I want to join the two files together in webfocus on employee_id, pay_month and pay_sequence_number (these columns are in both hold files).

I'd normally do this with a SQL join, but this is a special case. So, can anyone give me an idea of what I need to do here? I've tried something like:

JOIN employee_id AND pay_sequence_number AND pay_month IN table1 TO employee_id AND pay_sequence_number AND pay_month in table2 as table1;

.. but the entire 2nd hold file is left off. If I remove some of the AND clauses, it shows up, but the data is not right.

Any ideas? Thanks in advance.

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


WebFOCUS 7.6.3 | Solaris 10 | Excel, PDF
 
Posts: 46 | Location: Austin TX | Registered: June 04, 2009Report This Post
Expert
posted Hide Post
We need a bit more information. Are the hold files fixed format or really SQL? Have you verified that the formats of all the join fields are identical in both files? If the hold files are truly fixed format, are the files sorted by the 3 join fields? This is an absolute requirement.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<JG>
posted
You need to read up on JOIN

When joining flat files OR focus files multi field joins are not supported.

When you extract create a compound key that you can join with.

For preference use FORMAT FOCUS for the JOIN TO hold file and index the key on the file you are joining to.
 
Report This Post
Gold member
posted Hide Post
JG, perhaps you could provide me with an example for my situation? I've already hit the manual for this one, but it hasn't been any help.

Ginny - They are like
SQL SQLORA
SELECT * from blah;
TABLE ON TABLE HOLD AS data2
The join field formats are the same.


WebFOCUS 7.6.3 | Solaris 10 | Excel, PDF
 
Posts: 46 | Location: Austin TX | Registered: June 04, 2009Report This Post
Expert
posted Hide Post
these are flat files, but you could still use SQL:

SQL 
SELECT COUNTRY, MODEL, SUM(DEALER_COST) AS TOT_DEALER_COST
FROM CAR 
GROUP BY COUNTRY, MODEL 
ORDER BY COUNTRY, MODEL;
TABLE ON TABLE HOLD AS H001
END

SQL 
SELECT COUNTRY, MODEL, BODYTYPE, SUM(RETAIL_COST) AS RETAIL_COST
FROM CAR
GROUP BY COUNTRY, MODEL, BODYTYPE
ORDER BY COUNTRY, MODEL, BODYTYPE;
TABLE ON TABLE HOLD AS H002
END

SQL
SELECT H001.COUNTRY, H001.MODEL, H002.BODYTYPE, H001.TOT_DEALER_COST, H002.RETAIL_COST
FROM H001
JOIN H002 ON H001.COUNTRY = H002.COUNTRY AND H001.MODEL = H002.MODEL;
END


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
  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] webfocus join help

Copyright © 1996-2020 Information Builders