I am making a query and in a field of that query I want to concatenate or extract all the data that is in another table. Is it possible to do this?
This is the query I'm doing:
SELECT r.id_resg as 'CLAVE RESGUARDO',
-- AQUI QUISIERA QUE SALIERAN TODOS LOS CAMPOS DE MI OTRA TABLA,
concat(resp.id_personal,' ' ,p.nombre,' ',p.Puesto) as 'RESGUARDANTE(S)'
from articulos art
join art_resguardo artresg
join resguardos r
join responsables resp
join personal p
on r.id_resg=resp.id_resg
and resp.id_personal=p.id_personal
and art.no_serie=artresg.no_serie
and r.id_resg=artresg.id_resg;