Hi all,
I have a select statement with a text field along with other fields with aggregate functions. If I use the text field in my group by I get the following:
"The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator"
If I don't use it, then I get the following:
"invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause"
How can I get rid of this?
Thank you,
Shal
I have a select statement with a text field along with other fields with aggregate functions. If I use the text field in my group by I get the following:
"The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator"
If I don't use it, then I get the following:
"invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause"
How can I get rid of this?
Thank you,
Shal