Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] InfoAssist JOIN
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] InfoAssist JOIN
 Login/Join
 
Expert
posted
Is the following possible:
JOIN FIELD1 IN FILE1 TO FIELD1 IN FILE2 TAG J001 AS J001
JOIN FIELD1 IN FILE1 TO FIELD1 IN FILE3 TAG J002 AS J002

The reason that I ask is that when I do this, I only see the fields from line two of the two JOINs.

Or, do I need to do something like the SQL CLE, when I do the first JON and HOLD it, the do another JOIN from that to FILE3?

FILE3 is a synonym to an Excel Spreadsheet.

An explanation behind your 'Yes' or 'No' would be appreciated.

Thanks, Doug

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



In FOCUS Since 1983 ~ from PC FOCUS to WebFOCUS 8204M Gen48
 
Posts: 2702 | Location: Nashville TN Area [Test:8204Mg48/Prod:8202Mg60] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Update:

I did a TABLE FILE request / HOLD FORMAT FOCUS on FILE3 to create a FOCUS file, with the synonym. And the JOIN works as above Yea!.

the question remains: Why didn't it work from the Synonym for the Excel file? My quest continues...

This message has been edited. Last edited by: Doug,
 
Posts: 2702 | Location: Nashville TN Area [Test:8204Mg48/Prod:8202Mg60] | Registered: February 23, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Doug

This looks like it was done correctly. Do a ? JOIN after the request and see what it shows.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1194 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
The ? JOIN shows that the three files are JOINed. But only the fields from the 2nd JOIN are available in IA.

I'll be back on this on Monday... I'm off to California...

This message has been edited. Last edited by: Doug,
 
Posts: 2702 | Location: Nashville TN Area [Test:8204Mg48/Prod:8202Mg60] | Registered: February 23, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Could it be as ridiculous as you are missing the END after each JOIN...


WF 7.7.05M, 8.1.05M, 8.2.0.1M gen240 Windows, HTML, Excel, PDF
In Focus since 2007
 
Posts: 1794 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
Could it be as ridiculous as you are missing the END after each JOIN...

Actually, the END statement is only needed on a multi-line JOIN. It's not required in the code in my original post... Unless something has changed with that. If so, What Changed?

The code in my original post was simplified code taken from the IA Generated code, which did not work when using it as IA generated it (IA generated Multi-line statements with the END as the terminator of each JOIN), simplified down to single line JOINs for the sake of the FP display.



In FOCUS Since 1983 ~ from PC FOCUS to WebFOCUS 8204M Gen48
 
Posts: 2702 | Location: Nashville TN Area [Test:8204Mg48/Prod:8202Mg60] | Registered: February 23, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
quote:
simplified down to single line JOINs for the sake of the FP display

Hasn't thought that you did that.


WF 7.7.05M, 8.1.05M, 8.2.0.1M gen240 Windows, HTML, Excel, PDF
In Focus since 2007
 
Posts: 1794 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
OK, that wasn't clear. The case remains that the JOIN, done as the two single line JOINs or 'as IA created them as multi-line JOINs' didn't work.
 
Posts: 2702 | Location: Nashville TN Area [Test:8204Mg48/Prod:8202Mg60] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Trying to reproduce your exact situation (Excel source files and using IA) and it works fine.

I created a workbook with three worksheets, each with two columns of data.

The first row is a header row to provide field names.

The first column is named "FIELD1" the second column is named "FILE#_FIELD2" where # relates the worksheet number.

After creating the synonyms for the three worksheets, I could open IA using the first worksheet and the used Data/Join to add the other two.

Result was all three files are displayed in field selector.


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, 8.2.02M, 8.2.03, 8.2.04 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.04 standalone on Windows 10 
 
Posts: 5437 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
Thanks Tony, Chuck, and Martin,

That clarified this and I got it to work as it should.
 
Posts: 2702 | Location: Nashville TN Area [Test:8204Mg48/Prod:8202Mg60] | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] InfoAssist JOIN

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.