Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15930

The text data type cannot be selected as DISTINCT because it is not comparable.

$
0
0

Hi,

I am using the query as below,but i am getting error as:

The text data type cannot be selected as DISTINCT because it is not comparable.

select  distinct Notetype,NOTE  from srcBudget
unionall
select distinct NOTETYPE,cast([NOTETEXT] as [varchar](max) )as NOTE FROM SrcBudnote


sudha


Viewing all articles
Browse latest Browse all 15930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>