Last active
June 25, 2017 02:18
-
-
Save horaciod/11b2046f9fbc2334033716854d640d78 to your computer and use it in GitHub Desktop.
recupera en una columna el resultado de una consulta de tabla relacionada
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select x , | |
(select array_to_json(array_agg(row_to_json(t))) from (select asistentes.apellido as evaluador, evaluacion from evaluadoresxresumen left join asistentes using(idasistente) where idresumen=resumenes.idresumen) t) as evals2 | |
from xxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
para postgresql 9.5 o superior