
Dividir Campos "$"
Publicado por Oscar Vangelis (6 intervenciones) el 12/09/2013 14:20:18
Que tal buenos días espero y puedan ayudarme quiero actualizar una tabla (MiTabla) ...en donde tengo una columna (nCompuesto) la tengo que dividir en 3 columnas separadas aPaterno, aMaterno y nombres quiero saber si alguien me puede ayudar con la consulta tipo o algo parecido
Update MiTabla Set aPaterno =
Update MiTabla Set aMaterno =
Update MiTabla Set nombres =
Mis Datos que tengo en nCompuesto son como estos:
"SILVA$LOPEZ$MIGUEL"
"HERNANDEZ$ANTONIO$FRANCISCO"
"LUGARDO$VICENTE$FLORIBERTO"
"LOPEZ$GUZMAN$HUGO LEONARDO"
"SALAS$PEREZ$ARACELI"
"VARELA$LEON$ALBERTO"
"VARELA$GARCIA$MATEO CELESTINO"
"SALINAS$HERNANDEZ$VERONICA"
"VARELA$LEON$IVAN"
"RAMIREZ$TINOCO$MA DE LA LUZ"
"UGALDE$FERRER$NANCY"
"RAMOS$MENCHACA$MARISELA"
"GONZALEZ$SIBAJA$ELOISA"
"IDA$NAKAMURA$REYNA VERONICA"
"AYALA$GONZALEZ$MARGARITA"
"GIL$GUZMAN$AUSTREBERTHA"
"CRUZ$GRANADA$GRACIELA"
"ESCUDERO$NOLASCO$MAURICIO"
Como pueden ver están separados por dolar ($) Intente ya con reverse charindex y substring y he obtenido resultados parciales me gustaría saber si ustedes saben como hacerlo exactamente
Muchas Gracias por su atención.
Update MiTabla Set aPaterno =
Update MiTabla Set aMaterno =
Update MiTabla Set nombres =
Mis Datos que tengo en nCompuesto son como estos:
"SILVA$LOPEZ$MIGUEL"
"HERNANDEZ$ANTONIO$FRANCISCO"
"LUGARDO$VICENTE$FLORIBERTO"
"LOPEZ$GUZMAN$HUGO LEONARDO"
"SALAS$PEREZ$ARACELI"
"VARELA$LEON$ALBERTO"
"VARELA$GARCIA$MATEO CELESTINO"
"SALINAS$HERNANDEZ$VERONICA"
"VARELA$LEON$IVAN"
"RAMIREZ$TINOCO$MA DE LA LUZ"
"UGALDE$FERRER$NANCY"
"RAMOS$MENCHACA$MARISELA"
"GONZALEZ$SIBAJA$ELOISA"
"IDA$NAKAMURA$REYNA VERONICA"
"AYALA$GONZALEZ$MARGARITA"
"GIL$GUZMAN$AUSTREBERTHA"
"CRUZ$GRANADA$GRACIELA"
"ESCUDERO$NOLASCO$MAURICIO"
Como pueden ver están separados por dolar ($) Intente ya con reverse charindex y substring y he obtenido resultados parciales me gustaría saber si ustedes saben como hacerlo exactamente
Muchas Gracias por su atención.
Valora esta pregunta


0