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 statement

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Join statement
 Login/Join
 
Gold member
posted
Hi all,

I am new to WebFOCUS, could anyone explain me the naming convention for the 3 parts name.

for eg.,
JOIN EMPLOYEE.EMPLOYEE.DEPTNO IN EMPLOYEE TO UNIQUE DEPT.DEPT.DEPTNO IN DEPT AS J1 END

The same statement can be written as
JOIN DEPTNO IN EMPLOYEE TO UNIQUE DEPTNO IN DEPT AS J1 END


Please explain the difference between two statements.

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


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
The three parts of the name are:

Part 1: The File Name (Master File)
Part 2: The Segment Name (Check out the Master File), FOCUS supports files with structures.
Part 3: The Field Name.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
TexasStingray, your too quick. Smiler


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Well, it depends on whether the masterfiles you are using are defined on a DBMS-based table, FOCUS databases (which may have segments), etc.

In general, one can reference a field using the convention:

Masterfile.Segment.Field

In most cases Masterfile has the same name as the Table it uses but it all depends on your environment.

I use WebFOCUS against Oracle tables and by default both the masterfile name and the segment use the same name as that of the table they are mapping, so ...

JOIN MYTABLE.MYTABLE.MYFIELD IN MYTABLE ...


Would have the same effect in my environment as:

JOIN MYFIELD IN MYTABLE


However, other data sources (VSAM, FOCUS Hold files, XFOCUS) introduce the concept of Segments and in that case it might be necessary to use the "long" notation in order to reach the field you need.

As with any new tool or technology it is more than recommended to get oneself acquainted with its foundations to better understand how to interact with it. I think some reading would be in place for you to better understand the concepts of WebFOCUS and something I would suggest would be:

1. Describing Data With WebFOCUS Language 7.6 (DN: 4500806.0509)
2. Creating Reports With WebFOCUS Language 7.6, Page 15 (Joining Data Sources) (DN: 4500804.0909)

You can find those documents in the Technical Documentation section at Information Builders website.

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



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
Waz, you are not any slow either Wink



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
Thanks for the info.


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Virtuoso
posted Hide Post
In practice there is no difference between the two statements. In some cases, the fully qualified names (table.segment.column) may be necessary to avoid any ambiguity when two joined tables contain identically-named column names. The GUI tools usualy write fully qualified names, while developers who do their own coding tend to use the syntax requiring the fewest number of keystrokes. Wink


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Virtuoso
posted Hide Post
quote:
while developers who do their own coding tend to use the syntax requiring the fewest number of keystrokes


You're absolutely right. I addition, going over such a verbose code as the one generated by the GUI is rather annoying and a bit harder to understand (at least for me anyway).



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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 statement

Copyright © 1996-2020 Information Builders