Dear, I require the help of your wise minds.
From a table name "Details" contains the column "Descripted", which may contain alphanumeric data and may have X number of words, example.
[Descrip]
01. reMunerAcion feBrero 2017
02. enERO eMP 141414
03. 20178233 NOVIEMBRE
The expected result:
[Descrip]
01. Remuneracion Febrero 2017
02. Enero Emp 141414
03. 20178233 Noviembre
I tried to do it in the following way but I only managed to capitalize the first word of the sentence with the following sentence:
UPDATE DETALLES
SET
Descrip=UPPER(LEFT(Descrip,1))
+LOWER(SUBSTRING(Descrip,2,LEN(Descrip)))
Any ideas on how to achieve it? I have searched for it but I can not find it for each sentence. SQL Server 2008 R2