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] Join not working

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Join not working
 Login/Join
 
Platinum Member
posted
I have a simple inner join between two table that isn't working. Table A has various year values, e.g. 2011, 2015, 2012, etc. Table B has only one value, 2015. When I do an Inner Join between these two tables I expect to get only the 2015 records out of Table A; however, I'm getting everything.

Now, If I add the Table B field to my report, then I get only 2015 items.

The report only works correctly if I add the field from Table B or I add a WHERE statement. I thought the Inner Join would have negated the need for the WHERE statement. Why doesn't it?

Tony

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015Report This Post
Virtuoso
posted Hide Post
Reverse your JOIN.

The way it works in FOCUS is not the same as a SQL Join.

Instead of (which you probably did):
JOIN
 INNER field IN TableA
    TO field IN TableB Tag J1 AS J1
END


Consider:
JOIN
 INNER field IN TableB
    TO field IN TableA Tag J1 AS J1
END


Join Child to Parent instead of Parent to Child.

In a JOIN, if you do not include any field from the joined table in your TABLE FILE...END it's like having no join for Focus.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Hey MartinY,
I found a reference to something in IB Tech support (hottrack 60642543) that says if there isn't a file used in Table B then WebFOCUS won't recognize the join.

figures

Thanks,
Tony


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015Report This Post
Member
posted Hide Post
quote:

I found a reference to something in IB Tech support (hottrack 60642543) that says if there isn't a file used in Table B then WebFOCUS won't recognize the join.


This may have been obvious to some but in case someone misses it like I did on first read...

If you don't use a FIELD from the joined table (TableB) then the join is ignored.


WebFOCUS 8.1.0.5
Windows 10, all output
 
Posts: 16 | Location: CT | Registered: April 12, 2013Report This Post
Guru
posted Hide Post
JOIN FILE file AT field TO ALL FILE file AT field AS name
WHERE condition

From Walter Flood's Hidden Gems


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Member
posted Hide Post
Hello, I need assistance with a JOIN. I uploaded an EXCEL spreadsheet into WebFocus 8.1, and the administration created a mas. I want to join it to another table in Oracle, but I keep getting an error even with the correct key. Please assist.


WebFOCUS 8
Windows, All Outputs
 
Posts: 27 | Registered: January 10, 2017Report This Post
Member
posted Hide Post
Terri977,

Please provide the masters and join statement


WebFOCUS 8.1.0.5m
 
Posts: 26 | Registered: October 09, 2007Report This Post
Master
posted Hide Post
I wouldn't recommend directly joining an Excel file to your Oracle table. It will be really inefficient.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report 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] Join not working

Copyright © 1996-2020 Information Builders