I have an sql column that is a string of 100 \'Y\' or \'N\' characters. For example:
YYNYNYYNNNYYNY...
What is the easiest way
This will return number of occurance of N
select ColumnName, LEN(ColumnName)- LEN(REPLACE(ColumnName, 'N', '')) from Table