I have built a query which contains UNION ALL, but the two parts of it have not the same data type. I mean, i have to display one column but the format of the two columns, from where i get the data have differences. So, if i get an example :
select a,b
from c
union all
select d,b
from e
a and d are numbers, but they have different format. It means that a's length is 15 and b's length is 13. There are no digits after the floating point. Using digits, varchar, integer and decimal didn't work. I always get the message : Data conversion or data mapping error. How can i convert these fields in the same format?