1
I do a GROUP BY in a query result and the result comes this way:
I wonder if it is possible to bring together in this way?
I wonder if this grouping is best done in PHP or Query and how it can be done?
Follows my code:
Query SQL
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
A Function to the description, or a subconsulta would solve your problem.see
– Marconi
I will remove the PHP code from your question to make it clearer, all right?
– Marconi
OK @Marconi no problem!
– Shaolin Fantastic