I do a GROUP BY in a query result and the result comes like this:
Iwouldliketoknowifitispossibletobringgroupedinthisway?
I'd like to know if this collation is best done in PHP or Query and how can it be done?
Follow my code:
SQL Query
SELECT id,cliente, descricao, forma_pgto, bandeira, valor, codigo, data, cod_aut
FROM ItensVendidos
WHERE data BETWEEN '2017-05-22' AND '2017-05-22'
GROUP BY id,cliente, descricao, forma_pgto, bandeira, valor, codigo, data, cod_aut