Could you shou the query or at least the basic syntax?
A common problem when using set operators:
The data type of a column is determined by the first select.
When the column is a VARCHAR(20) in the 1st select and a VARCHAR(30) in the 2nd, the data from the 2nd will be silently truncated to 20 chars.
To avoid that you have to cast the column in the 1st select to a VARCHAR(30).
Dieter
Could you shou the query or at least the basic syntax?
A common problem when using set operators:
The data type of a column is determined by the first select.
When the column is a VARCHAR(20) in the 1st select and a VARCHAR(30) in the 2nd, the data from the 2nd will be silently truncated to 20 chars.
To avoid that you have to cast the column in the 1st select to a VARCHAR(30).
Dieter