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] SQL PASS THRU

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] SQL PASS THRU
 Login/Join
 
Master
posted
When using SQL pass thru is it good to directly apply filters (WF where conditions) on SQLOUT or is it better to save SQLOUT as HOLD and then apply filters? This is performance wise..

Thanks

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


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Gold member
posted Hide Post
Hi!

As a rule, your filters should be applied at the earliest possible point. So, put as many as you can right in the SQL, then, when you TABLE sqlout, add whatever else you can there.

There are exceptions, which you'll find as you work with your data - sometimes a filter in an SQL statement will produce a sub-optimal execution plan for the SQL, and it will actually end up being more efficient to pull a large data set with SQL and then filter it in WebFocus.

Hope that helps!
Rob


WebFocus 8201m on Windows; App Studio 8201; Procedures: WebFocus with SQL; HTML Parameter Pages & Dashboard; Output: Excel, HTML, & PDF.
 
Posts: 88 | Location: MI | Registered: July 23, 2009Report This Post
Master
posted Hide Post
Thanks Rob. I will try that. And can you help me with one thing.


I am passing multiple values from listbox to webfocus procedure which is a SQL query. How to add it as a filter to SQL query. If its one value I don't have any problem. If its multiple, there is problem with quotes etc. Do you have any dialog manager code for this?

Thanks


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Guru
posted Hide Post
Hi Enigma,

It is good to apply filer values in SQL query itself rather than you do on the SQLOUT.
Thatz the better way for higher performance.

But there are few scenarios you need to do that in WF. As said by Rob is one...

Other one... If you have multiple select parameter in your dashboard, you cant directly assign that to a where clause variable in Query(1 OR 2 OR 3). You need to frame the variables as per the DB need. In such cases that can be done as part of SQLOUT.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Expert
posted Hide Post
Pass it to SQL SP

Yes, you can pass multiple values to the Stored Proc...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
Thanks tom. But I figured it out myself. Its somewhat similar to this..thanks all..


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report 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] SQL PASS THRU

Copyright © 1996-2020 Information Builders