on 04-10-2014 11:54 PM
Hi,
I need to join two tables based on a column which is having different data types in the tables.
I have a column WorkGroupCode with Numeric data type in Table A and with Character Datatype in Table B.Is there any way we can change either of the datatypes to one ( Numeric to Character or viceversa) and perform the join using IDT in Business Objects. Is there we can do it in IDT instead of changing at the database level.
Please advice!
Thanks Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doing it in database will be good as the conversion of data types before joining will be faster in database.
But this can be done in IDT by using database functions.
If you are using SQL server use CAST function, but use this in the join condition.
Double click the join between two tables:
and in join condition mention
WorkGroupCode=CAST(WorkGroupCode as INT)
So this will do conversion of datatype before joining.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.