Created
August 24, 2012 17:42
-
-
Save tkMageztik/3453333 to your computer and use it in GitHub Desktop.
Genera iniciales en base a una palabra. V1, por refactorizar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update tabla | |
set tabla_descripcion= | |
(case when PATINDEX('% %',tabla_descripcion) > 0 | |
then left(tabla_descripcion,4) +'. '+ | |
left(substring(tabla_descripcion,PATINDEX('% %',tabla_descripcion)+1,LEN(tbien_descripcion)),4)+'.' | |
else left(tbien_descripcion ,4) +'. ' | |
end ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment