I have a a col that is a text field (i know not used any more) that i need to compare. (the instruction field is a text field)
Case when rtrim(cast(RT.INSTRUCTIONS as varchar(max))) = rtrim(cast(HQ.INSTRUCTIONS as varchar(max))) then 'TRUE' Else 'FALSE' end as INSTRUCTIONS
.
the value in RT.Instructions
is "Check the oil levels every 30 hours. "
the value in HQ.Instructions
is "Check the oil levels every 30 hours."
Why wont the trailing blank go away. i did a len
on both and hq
is 1 less then the rt
value.
I also am having the same issue on a varchar(60)
field.