using sequential file column value in SQL query

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

using sequential file column value in SQL query

Post by Maximus_Jack »

Hi
Is there any way i can use a sequential file column value in a SQL query?
like.......

Oracle SQL Query
===========

insert into tablename1 ( col1)
select col1
from tablename2
where col2 in ( dslink.col1)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I guess you could define an "external table" in the Oracle database, that refers to the sequential file, and perform the join on that basis.

Other than that, not really.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Like.... what? Which part of your example is the "sequential file column value"? :?

As noted, unless you pass the value as a parameter you'd need an external table to use the file as if it were a table in a SQL query.
-craig

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