Below is my code and the error message that I'm getting with using DISTINCT.
Besides using varchar(MAX), which isn't working, what else can be done in the syntax to allow for DISTINCT?
Msg 421, Level 16, State 1, Line 1
The text data type cannot be selected as DISTINCT because it is not comparable.
select DISTINCT SOP30200.CUSTNMBR, sy01200.EmailToAddress
FROM sop30200 left outer join sy01200 on sop30200.CUSTNMBR = sy01200.Master_ID
where Master_ID like 'AAR%'