how to change datatype in the joining field in the IA

This forum contains ProfileStage posts and now focuses at newer versions Infosphere Information Analyzer.

Moderators: chulett, rschirm

Post Reply
Gaurav1
Participant
Posts: 9
Joined: Tue Jan 12, 2010 7:29 am
Location: Bangalore

how to change datatype in the joining field in the IA

Post by Gaurav1 »

Hi ,

I am getting error in while saving the data rule definition, the problem is on joining, the key columns of two tables are different, so while joining in IA, throwing error on joining,

just another way i want solution in IA of below query.

select * from xxx A inner join yyy B
ON CAST( A.ZON_CODE as DECIMAL)) = B.ZON_CODE


please provide solution , waiting for reply.
Gaurav//
kolkata-101//
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

What have you tried?
Or are you just waiting?
Gaurav1
Participant
Posts: 9
Joined: Tue Jan 12, 2010 7:29 am
Location: Bangalore

Post by Gaurav1 »

I am not able to find the solution at IA, so just waiting for solution.

Thansk!
Gaurav//
kolkata-101//
rjdickson
Participant
Posts: 378
Joined: Mon Jun 16, 2003 5:28 am
Location: Chicago, USA
Contact:

Post by rjdickson »

Hi,

Have you looked at the TOSTRING or VAL functions?
Regards,
Robert
Gaurav1
Participant
Posts: 9
Joined: Tue Jan 12, 2010 7:29 am
Location: Bangalore

Post by Gaurav1 »

Hi,

In the data rule , join key tab (selecting as a key field in the join) there is no option to modify datatype of the field.

The doubt is, how to change data type in the joining condition, as we can do to db2 like CAST( A.ZON_CODE as DECIMAL)) = B.ZON_CODE

Thanks//
Gaurav//
kolkata-101//
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create a virtual column on the table, and use that in your join.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Gaurav1
Participant
Posts: 9
Joined: Tue Jan 12, 2010 7:29 am
Location: Bangalore

Post by Gaurav1 »

Thanks ray

:)
Gaurav//
kolkata-101//
Post Reply