Database as lookup

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ravij
Premium Member
Premium Member
Posts: 170
Joined: Mon Oct 10, 2005 7:04 am
Location: India

Database as lookup

Post by ravij »

Hi,
I need to use the database as lookup n my sourse is also database, I need to map these two without a key column in XFM stage. How should i procede for this? Is there is any stage to use with out key col?

thanks in advance
Ravi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No. How do you propose to do a lookup without 'key columns'?
-craig

"You can never have too many knives" -- Logan Nine Fingers
rwierdsm
Premium Member
Premium Member
Posts: 209
Joined: Fri Jan 09, 2004 1:14 pm
Location: Toronto, Canada
Contact:

Re: Database as lookup

Post by rwierdsm »

Ravi,

Are you using data pulled in the first DB read as values to 'lookup' in the second DB stage?

If so, you would define the values you want to lookup as keys in your second DB query, they would become part of the where clause.

If you are trying to do something else, please provide some more detail.

Rob Wierdsma
Rob Wierdsma
Toronto, Canada
bartonbishop.com
ravij
Premium Member
Premium Member
Posts: 170
Joined: Mon Oct 10, 2005 7:04 am
Location: India

Database as lookup

Post by ravij »

Hi Chulett,

thnaks for quick response.

Can u elaborate it a bit more please?

thanks in advance
Ravi
rwierdsm
Premium Member
Premium Member
Posts: 209
Joined: Fri Jan 09, 2004 1:14 pm
Location: Toronto, Canada
Contact:

Post by rwierdsm »

chulett wrote:And the men who hold high places must be the ones to start
To mould a new reality closer to the heart...
You can be the captain, and I will draw the chart,
Sailing into destiny, closer to the heart.

:-) Cool.
Rob Wierdsma
Toronto, Canada
bartonbishop.com
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

rwierdsm wrote:You can be the captain, and I will draw the chart, sailing into destiny, closer to the heart.
Been stuck in my head for something like the last week and I hoped this might exorcise that particular demon. Nope. :lol:

Ravi, keys provide values for the 'where' clause which is why there really isn't any such thing as a lookup without key columns. Read Rob's reply. Post more details of what you are actually trying to accomplish rather than telling us how you think you 'need' to do it.

Perhaps you should just join the two data sets in the source query?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply