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
[CLOSED] DB_LOOKUP
 Login/Join
 
Member
posted
Hi,
I am using DB_LOOKUP to load my fact table from SCD dimensions , so when I look up into my dimension table I need to retrieve the latest record for that dimension (where SCD end date is null), how can I incorporate that rule while using DB_LOOKUP ?

For example I am doing DB_LOOKUP on JOBID to retrieve job_guid(surrogate key)to load my Fact table from my junk dimension d_umms_job_detail. in that dimension i will have several rows for that jobid but i need to retrieve the guid for the most recent record (where enddate is null)

DB_LOOKUP(d_umms_job_detail, JOBID, JOB_ID, UMMS_JOB_DET_GUID)

thanks for your help.

Regards
VS4

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


WebFOCUS8,IWAY DM
Windows, All Outputs
 
Posts: 9 | Registered: July 29, 2014Report This Post
Guru
posted Hide Post
That's the problem with NULL. You can't look for it.

Although the default value for the end date for active records is NULL (it seemed like a good idea at the time) you can override it by setting a value for the SCD variable &&CM__SCDEADT as a date far in the future, say 29991231 in the Variables object in the process flow. Then create a source transformation for a field with that value. Now you can use that as an additional field in your DB_LOOKUP.

Alternatively you could add an Active Flag to your dimension table. Then create a transformation for a field with value 1, and use that as the additional field in your DB_LOOKUP.


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