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.
Is there a way in Webfocus/Infoassist to use CASE statements as sql does.
Example:
case WHEN TIMESTAMPDIFF(SQL_TSI_DAY, CAST("LOB Dimension".LOB_RCVD_001 AS DATE),CAST (CURRENT_DATE AS DATE) ) BETWEEN 6 AND 10 then "Work Fact".Count else 0 end
Here When i Say LOB_RCVD_001 it is Application Received date.
Wanted to know how to have this Query set in Infoassist to get the results with the count for the days given aboveThis message has been edited. Last edited by: FP Mod Chuck,
My SQL is rusty. Could you explain what you're trying to accomplish? From what I can tell, this is just an IF THEN ELSE in a DEFINE or a COMPUTE but maybe there's more to it than that.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
CASE functionname [TAKES p1/t1[,..., pn/tn]] [RETURNS result/t] [;]
I think you will find that CASE is in Maintain.
You should be able to issue ANSI SQL with a case command against any data source.
SQL
select country
case
when country = 'ENGLAND' then 'UK'
when country in ('W GERMANY','ITALY','FRANCE') then 'EUROPE'
else 'Other' END
from car
;
END
Originally posted by Doug: "CASE Statements": Sounds like it should be a NFR...
How is CASE different than DECODE? I have numerous requests where I have a WHERE on a DECODE value in a DEFINE and when I look at the SQL generated, the DECODE is converted to a SQL CASE statement.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
As mentioned by someone before, I think with IF THEN ELSE IF THEN ELSE IF .... you can do what CASE does in SQL. Actually if you look at the generated SQL you will find that IF THEN ELSE in a DEFINE or COMPUTE will be translated into a CASE statement.
WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster