6
I’m making an appointment at the bank, follow my table below
id | protocolo | status | alteracao | datahora
1 2 1 teste 2014-11-10 15:23:44
2 2 3 teste 2014-11-10 14:23:44
3 2 4 teste 2014-11-10 13:23:44
4 1 2 teste 2014-11-10 09:23:44
5 1 3 teste 2014-11-10 10:23:44
need to bring the result grouping the protocols by the ultimovalor datahora
,
or it is necessary the result so:
id | protocolo | status | alteracao | datahora
1 2 1 teste 2014-11-10 15:23:44
5 1 3 teste 2014-11-10 10:23:44
I don’t understand @Furlan, can edit your question demonstrating how you want the query?
– Thiago Thaison
opa @Thiagothaison so a moment
– Furlan
@Thiagothaison altered my question and left as she has to return me
– Furlan