The first select determines the datatype of the result, when you SELECT EMP.Designation UNION SELECT EMPLOYEE.Designation the result will be CHAR(20) and data in EMPLOYEE.Designation will be silently truncated to 20 chars.
When you do the union vice versa, it will be ok.
But i would recommend a CAST instead of relying on a specific order :-)
The first select determines the datatype of the result, when you SELECT EMP.Designation UNION SELECT EMPLOYEE.Designation the result will be CHAR(20) and data in EMPLOYEE.Designation will be silently truncated to 20 chars.
When you do the union vice versa, it will be ok.
But i would recommend a CAST instead of relying on a specific order :-)
Dieter