IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Multi feild Join between a Hold file and Oracle table
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi all,

we have a requirement where in we have to join hold file with Oracle table with multiple keys. is it possible to achieve this?

Thanks
Aparna
 
Posts: 3 | Registered: October 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
This should be possible.

To join to the Oracle table use the syntax:
JOIN
field1 AND field2 AND field3 IN HOLDFILE
TO field1 AND field2 AND field3 in oracletable
END


To join from the Oracle table use the syntax:
JOIN
field1 AND field2 AND field3 in oracletable
TO field1 AND field2 AND field3 IN HOLDFILE
END

the main difference is when you join to a HOLD file the fields you join to have to be in the sequence of the output from the Oracle request, that is, used as sort fields. Otherwise you will get an OUT OF SEQUENCE error.


Alan.
WF 7.6.5, PMF 5.1, MRE,RA,RG, etc... Win2003(8xQuad)/IIS/Tomcat with SSL and AD security.
 
Posts: 848 | Location: Portugal | Registered: February 07, 2007Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
I agree with Alan, of course depending on where your hold file resides and where your oracle table resides may cause some performance issues. I join hold files back to DB2 tables all the time, but if the hold file is large number of records, I will often pull the DB2 data from the table with a separate request, create a hold file then join the two hold files.


Leah
 
Posts: 1307 | Location: Council Bluffs, IA | Registered: May 24, 2004Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Very true Leah, a lot of records will give performance issues and dragging data back with a seperate request can be worthwhile.

You can join multiple field from hold to hold, sequence again permitting.


Alan.
WF 7.6.5, PMF 5.1, MRE,RA,RG, etc... Win2003(8xQuad)/IIS/Tomcat with SSL and AD security.
 
Posts: 848 | Location: Portugal | Registered: February 07, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Multi feild Join between a Hold file and Oracle table

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.