I am trying to union 2 tables, one of table has required column type as 'Int' and another table has column type as 'uniqueidentifier'.. because of this when I try to do union of 2 tables I get this error:
Operand type clash uniqueidentifier is incompatible with int
Is there any way I can overcome this issue?
inttouniqueidentifierand visa-versa, you could cast those columns to varchar in each query so they can be unioned. - Dan Guzman