I'm using an Oracle Database on PL/SQL Developer, and I want to combine the resulted rows of my query in just one row.
I have this:
Column 1
1. Row 1
2. Row 2
3. Row 3
I want this:
Column 1
1. Row 1, Row 2, Row 3
My query:
SELECT DISTINCT produto.ds_produto || ' Lote ->' || itmvto_estoque.cd_lote || 'Validade ->' || itmvto_estoque.dt_validade
FROM itmvto_estoque, mvto_estoque, produto, atendime
WHERE itmvto_estoque.cd_mvto_estoque = mvto_estoque.cd_mvto_estoque
AND produto.cd_produto = itmvto_estoque.cd_produto
AND mvto_estoque.cd_atendimento = 1532174
AND produto.cd_especie = 1
The database version is 10.
I found some similar questions here (like this one), but all of them are a little different, because I need to do it in just one column.
EDIT: The answer here for example used two columns and resulted more than one row.