hi all,
i have the following two tables
Tab A with a single column X CHAR(4)
-----
100
100a
200
200b
and
TAB B with two columns X INT, Y CHAR(10)
-----------------------------------
100 junk1
200 junk2
i need to join the above two tables to get the following output
X.TAB A --- Y.TAB B
100 -- junk1
100a -- junk1
200 -- junk2
200b -- junk2
so basically 100 and 100a is same for joing and 200 and 200b are same coz i only need to consider the integer portion..but in the table it is declared as char and as we all know i cant cast it to int so that i can get integer part. somehow i need to make work in the query..using like predicate..
Any Suggestions...
thanks in advance
logic4fun
i have the following two tables
Tab A with a single column X CHAR(4)
-----
100
100a
200
200b
and
TAB B with two columns X INT, Y CHAR(10)
-----------------------------------
100 junk1
200 junk2
i need to join the above two tables to get the following output
X.TAB A --- Y.TAB B
100 -- junk1
100a -- junk1
200 -- junk2
200b -- junk2
so basically 100 and 100a is same for joing and 200 and 200b are same coz i only need to consider the integer portion..but in the table it is declared as char and as we all know i cant cast it to int so that i can get integer part. somehow i need to make work in the query..using like predicate..
Any Suggestions...
thanks in advance
logic4fun