I have a WHERE condition which works for the type STRING but fails for an of type INT
 isnull(emp.name, 'x') <> isnull(mst.name, 'x')  -- works
But this condition below throws an error:
 isnull(emp.age, 'x') <> isnull(mst.age, 'x')   -- fails
Conversion failed when converting the varchar value 'x' to data type int.
where name is a STRING and age is of INT type.
How to rectify this?
 
     
     
    