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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
PIVOT and UNPIVOT
 Login/Join
 
Member
posted
When creating a Flow, Is there an equivalent to the SQL PIVOT and UNPIVOT relational operators?


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: October 20, 2011Report This Post
Guru
posted Hide Post
Assuming you mean a DataMigrator data flow, while there is no direct equivalent in the SQL used there, it is possible with techniques such as those described in the forum postTranspose rows into columns

Alternately you can use database specific SQL functions in a DBMS SQL Flow, or by creating a synonym for an external SQL script.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Member
posted Hide Post
quote:
DataMigrator


Thank you Clif for your relpy.

I looked at the suggested forum post. This would work for an equivalent PIVOT solution.

I also built an UNPIVOT query in a DBMS SQL Flow that populates an existing table , but the solution seems slow (over an hour to write about 300,000 records).

I’m about to try a synonym for an external SQL script. I’ll let you know how this goes.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: October 20, 2011Report This Post
Guru
posted Hide Post
A DBMS SQL Flow and creating a synonym for an external SQL script are two means to the same end. In either case the database specific SQL is passed through directly to the underlying relational database which executes the query. Throughput will be comparable.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders