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     [CLOSED] Find orphaned records using WebFOCUS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Find orphaned records using WebFOCUS
 Login/Join
 
Silver Member
posted
I've struggled with this over the years, and see lots of discussions. Basically, I'm trying to determine if there is a simple way to find records that exist in one table, but not in another. Can do this in every other tool I've ever used. Don't want to pull all the records into a hold table, because it's too large. I've done that in the past, changing the SET ALL, but I'd really like to pass it through to the database cleanly, without using SQL Passthrough. Hoping that there's an operator I haven't tried that will do the trick. To be more specific as to what I'm trying to accomplish, say I have an ADDRESS table with ZIP in it, and have a ZIPCODE table with ZIP. Want to find all ADDRESS records that have a ZIP that is not in the ZIPCODE table, and are therefore invalid.

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


Jeff Elam
WF 8 in Windows
 
Posts: 44 | Location: St. Louis | Registered: September 17, 2004Report This Post
Expert
posted Hide Post
Jeff,

I would recommend that you use MATCH FILE logic with NEW-NOT-OLD hold option.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
Tony,

Will give that a shot. Thanks!


Jeff Elam
WF 8 in Windows
 
Posts: 44 | Location: St. Louis | Registered: September 17, 2004Report This Post
Virtuoso
posted Hide Post
I would try
(a) a WHERE TOTAL test; or
(b) IF ... EXCLUDES (probably against a DEFINE'd field)
with a left outer join

-- the former might generate a HAVING clause in the SQL Select, and the latter a WHERE NOT EXISTS ...

either of which would allow the filtering to be passed on to the db server.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
If I understand your scenario correctly, you are:
  • joining two relational tables
  • specifying a left outer join (SET ALL = ON)
  • are having issues seeing short path records
Are you doing screening on the cross-referenced segment?

If so, you might want to try to SET SHORTPATH = SQL.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
If these are relational knowing the generated SQL is important, that way you will know if the whole tables are being pulled back.


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
Silver Member
posted Hide Post
Yes, it is Oracle. The Match logic pulled all records back into WebFOCUS and it ran forever. Did as a SQL passthrough, and was able to get it to come back nearly immediately. Will look at these other two options. Thanks for the suggestions. Will let you know my results.


Jeff Elam
WF 8 in Windows
 
Posts: 44 | Location: St. Louis | Registered: September 17, 2004Report 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     [CLOSED] Find orphaned records using WebFOCUS

Copyright © 1996-2020 Information Builders