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.
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,
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.
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