SQL - CONCATENAR

 
Vista:

CONCATENAR

Publicado por LEIDY (1 intervención) el 02/12/2009 20:55:48
HOLA A TODOS ESPERO ME PUEDAN COLABORAR, NECESITO HACER UNA CONSULTA EN SQL EN DONDE YO PUEDA CONCATENAR LAS FILAS DE UNA COLUMNA...
ES DECIR TENGO LA COLUMNA FECHAVISITA Y ESTA CONTIENE..:

FECHAVISITA
--------------------
2009/05/21
2009/07/12
2008/06/04
2010/05/01

ENTONCES LO QUE NECESITO ES COGER ESOS CUATRO REGISTROS Y LLEVARLOS A UNA VARIABLE.. LA CUAL CONTENDRA ESOS 4 REGISTROS. QUEDARIA ALGO COMO ASI:
vFechaVisita
---------------
2009/05/21,2009/07/12,2008/06/04,2010/05/01
------------------------------
MMM NO SE SI PUEDA... DE ANTE MANO 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:CONCATENAR

Publicado por Jorge (3 intervenciones) el 07/12/2009 16:07:08
Debes usar " pivot "
Lee un poco de ese tema
Cualquier duda consulta nuevamente
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