I have data in Postgres SQL, something like this
Name
Peter C Mcdonald
Mccarthy
I am trying to convert first letter after Mc to uppercase , something as below
Name
Peter C McDonald
McCarthy
I am using initcap function as below, but its not working as expected
Select initcap(name) from table
Appreciate any help!