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     [solved] one to many join

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[solved] one to many join
 Login/Join
 
Master
posted
hai all..

I am facing problem with one to many join b/w 2 hold files..

1st hold file has 1 row and 2nd has 5 matching rows.

But o/p shows me 5 rows with the only row from 1st hold file appended to all 5 rows..?!!

F1 F2 F3 F1 F2 F3

A B C A1 B C1
D B F A1 B C1
H B L A1 B C1

F1, F2 and F3 are fields and o/p comes as shown above.. (A1 B C1) is the row from 1st hold file and B is field used to join hold files..

Is there any setting for this?

Thanks all..

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


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Virtuoso
posted Hide Post
I'm not quite sure what setting you are looking for (or what your question really is). A one-to-many join joins a row in file a to all matching rows in file b based on a join field. That means that the info from the record in file a will show up for every record that it joins to in file b. That's the nature of one-to-many joins.

It joins like you're saying that you're not wanting that, so you need to go back an decide if you really want a one-to-many join or if you're looking for something else. If you can give us an example of what you do want, maybe we could suggest something else.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Master
posted Hide Post
Can't I avoid (A1 B C1) from the output I have shown?


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Expert
posted Hide Post
Try doing the join in the other direction, i.e. a one-to-one as the single-row file is a lookup file.


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
Virtuoso
posted Hide Post
You can show whatever you want. If you don't want to see those fields, don't put them in the PRINT statement. You haven't shown us any code, so we can't tell why you're getting what you are.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report 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     [solved] one to many join

Copyright © 1996-2020 Information Builders