0
How do I bring in any field, by the largest table ID. I did a MAX(Campo1), Campo2 and had to make a grouping by Campo2 and the result he brought me several Campo2 and not only one, which has the highest ID.
Select MAX(ID), campo2 from tabela where campo3 = valor group by campo2
This did not work, brought me several field2
You want to get a certain record field with the highest ID?
– ramaral