I have put a question here
Select the field as Distinct having data type as Text. Sql Server
and I got two replies one is saying to use
SELECT DISTINCT CONVERT(VARCHAR(MAX), Subjects) FROM T1
and the other is saying to use
select distinct cast(Subjects as varchar) from T1
I tried both and they are working fine. I am wondering whats the difference between both.
Thanks.