I want to count the number of characters in a ntext
column and then get the SUM
For example I have the following query:
SELECT LEN(field1) AS Length, field1
FROM table
It will return results like:
|Length|field1|
-------------------
4 abcd
6 abcdef
4 abcd
I now want to get the SUM
of the Length field. Using MS SQL 2008.