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     Decode translation to sql

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Decode translation to sql
 Login/Join
 
Silver Member
posted
Why doesn't the WebFOCUS interface translate the following types of statements to CASE statements in SQL?

DEFINE... DEPTNM/A11=IF CDIV EQ �A00� THEN �CORPORATE� ELSE
IF CDIV EQ �B01� THEN �NORTH'
ELSE �NA�;
END

or

DEFINE...DEPTNM/A11=DECODE CDIV (�A00� �CORPORATE�
�B01� �NORTH-EAST�
ELSE �NA�);

to

SELECT FIRSTNME, EMPLOYEE.SALARY,
CASE EMPLOYEE.WORKDEPT
WHEN 'A00' THEN 'CORP'
WHEN 'B01' THEN 'NORTH'
ELSE 'OTHER' END AS DEPTNM,
FROM EMPLOYEE

Using DB2 8.1, WF 5.2.3 Developer Studio.

Jon
 
Posts: 39 | Registered: January 26, 2004Report This Post
Guru
posted Hide Post
Are you looking for a technique to improve the efficiency of your code?
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
The reason is that the rbdms turns off the
optimization, and the result is a much slower
response.

The second reason is that when WebFocus is on another computer we want to divide the work between WebFocus and the RDBMS. Pushing everything to the rdbms overloads it when 500 tasks are running simultaneously, so any load reduction is useful.
 
Posts: 226 | Registered: June 08, 2003Report This Post
Silver Member
posted Hide Post
Thanks. Data Architect wanted to know why we did translate it so was looking for a good response back.

Jon
 
Posts: 39 | Registered: January 26, 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     Decode translation to sql

Copyright © 1996-2020 Information Builders