Hi everyone ,there is a big question I got on how to resovle

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
dongyingying
Participant
Posts: 35
Joined: Tue Feb 07, 2012 2:28 am
Location: China BeiJing

Hi everyone ,there is a big question I got on how to resovle

Post by dongyingying »

I have a sql statement ,But I don't know the column before I run the sql,its means the sql is black box ,I know nothing in it ,before open it.,

So would you like tell me how to resolve the issue.
Dong Ying Ying Come on.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Surely the SQL statement mentions the column(s) involved?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dongyingying
Participant
Posts: 35
Joined: Tue Feb 07, 2012 2:28 am
Location: China BeiJing

Post by dongyingying »

Hi Ray ,we don't sure.the early ,I think it simple ,I change the row to column because the sql result only one row,yes it is. so I use the union word to change the sql .after all,I found there are some join or group ,so then my menthods is not correctly .

then I back to the source point .try to find a way the sql run first and then columns not needed ! but this is only my think , I don't know how to do .
Dong Ying Ying Come on.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry, but I have absolutely no idea what you are trying to ask or do. :(
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you post the SQL statement? It does not matter if any constants in the SQL statement are Chinese.
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 »

dongyingying wrote:try to find a way the sql run first and then columns not needed !
Posting the sql involved should help. Are you saying that you don't know the "columns not needed" because it does a select * rather than specifically naming the ones that are needed?
-craig

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