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.
I am confused bteween JOIN and JOIN ALL. I looked in help, it says JOIN(without ALL) is unique join and with ALL is non-unique(one to many). But what if I have multiple records in cross-reference table corresponding to a record in master table. Do I need to use JOIN or JOIN ALL.
I know its a stupid question, but just got stuck at it.
Thanks!This message has been edited. Last edited by: Kerry,
Thanks and Regards, Piscian
WebFocus 714 Windows Server 2003 Enterprise Edition HTML,Excel,PDF
You need to use JOIN ALL. For instance consider two tables, DEPARTMENT and EMPLOYEE, since there can be many employees in a department, to retrive all the employee details of any department, you need to use JOIN ALL, if only one record is to be extracted, JOIN will do that.
JOIN DEPT_ID IN DEPARTMENT TO ALL DEPT_ID IN EMPLOYEE AS JOIN11
Ensure that the table EMPLOYEE is sorted by DEPT_ID before attempting this join, else sort the data in a temporary hold file and use here.
-Shrikant
FOCUS 7.2.3 Platform: IBM system Z9 Business class O/P formats: Flat files, excel and CSV files
Posts: 39 | Location: Hyderabad, India | Registered: April 28, 2007
But I am not able to get the difference. If I use JOIN here, will it match just one record in cross-reference file for a record in host file and ignore all other matching records?
Which means we should use JOIN only when key to be joined is primary key in both the tables.
Please correct me if I am wrong.
Thanks!
Thanks and Regards, Piscian
WebFocus 714 Windows Server 2003 Enterprise Edition HTML,Excel,PDF
JOIN ALL does a one to many join. JOIN does a one to one join. If you do the latter against a structure where there can be multiple children for each parent, you will only get the first one. To get them all, you would need to do the former.