SQL Server - UNIR DOS CAMPOS DE UNA TABLA

 
Vista:

UNIR DOS CAMPOS DE UNA TABLA

Publicado por dario (1 intervención) el 26/02/2008 17:49:14
HOLA GENTE!!!
TENGO UNA TABLA QUE TIENE UN CAMPO APELLIDO Y OTRO NOMBRE Y NECESITO UNIR EN OTRO CAMPO LOS MENCIONADOS ANTERIORMENTE!!!
HECHO EN ACCESS ME FUNCIONA POR NO LOGRO HACERLO EN SQL DEVELOPER

APELLIDO & " " & NOMBRE - ESTO NO ME FUNCIONA

SALUDOS
DESDE YA MUCHAS GRACIAS!!!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:UNIR DOS CAMPOS DE UNA TABLA

Publicado por Isaias (3308 intervenciones) el 27/02/2008 00:32:24
SELECT Apellido+ ' '+Nombre FROM ........................
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:UNIR DOS CAMPOS DE UNA TABLA

Publicado por trucos (1 intervención) el 24/01/2009 20:26:03
concat(alumno.ape, ' ', alumno.nom) as nombre

select campo1, concat(mitabla.campo2, ' ' , mitabla.campo3) as nombre from mitabla

a mi me funciona sin niingun problema
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:UNIR DOS CAMPOS DE UNA TABLA

Publicado por LOCO (1 intervención) el 09/06/2009 19:39:34
MIRA SI TIENES DOS CAMPOS Y QUIERES UNIRLOS LO UNICO QUE TIENES QUE HACER ES ESTO :

APELLIDO + ' , '+ NOMBRE

ES CON COMILLAS SIMPLES
ESO ES TODO
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:UNIR DOS CAMPOS DE UNA TABLA

Publicado por Yony Soft (1 intervención) el 26/09/2011 22:45:11
No funciona el codigo mas presiso con ejemplos simples
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar