0
I need to make a SELECT
in a table containing ID
, VALOR
, DATA
and NOME
.
The result has to bring only the lines on which the was the biggest date existing.
Example:
ID VALOR DATA NOME
1 100 22/05/2016 pedro
2 120 22/05/2016 lucas
3 100 21/05/2016 pedro
4 190 21/05/2016 lucas
5 100 21/05/2016 pedro
6 190 21/05/2016 lucas
Expected result:
ID VALOR DATA NOME
1 100 22/05/2016 pedro
2 120 22/05/2016 lucas
Thank you very much Carlos, I had tried something similar but something was wrong...
– PedroDN