Please help me - I have problem with counting how many 'a' (character) there are in a row and column.
This is my query :
declare @zz as varchar(10) = '123a123a12'
select @zz
What function in SQL Server 2008 R2 can I use to count how many 'a' are in there?
How can I combine charindex
with len
?
Thanks