How to check upper case existence length in a string using Sql Query?
For Eg:
1.KKart – from this string the result should be 2, because it has 2 upper case letters.
2.WPOaaa – from this string the result should be 3, because it has 3 upper case letters.
Thanks in advance
There is no built-in T-SQL function for that.
You can use a user-defined function like this one:
Usage (with the examples from your question):
select dbo.CountUpperCase('KKart')returns2.select dbo.CountUpperCase('WPOaaa')returns3.