Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2013, 17:28
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Update sobre el Sexo con base el nombre

algo asi:

update alumnos
set sexo=t1.sexo
from
(
select sexo,nombres from nombres
) as t1 where alumnos.nombre=t1.nombre


saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me