1
I have this query that returns the last record and the previous one:
SELECT Colaborador
FROM centrodb.Registolistagem
LEFT OUTER JOIN centrodb.Registolistagem2 ON centrodb.Registolistagem2.IdLista = centrodb.Registolistagem.Id
WHERE Carro = 'G3 Ala B'
ORDER BY centrodb.Registolistagem.Id DESC LIMIT 2
But now I intended to take only the record before the last, as I can do?
Try to put the
LIMIT 1,1
in place ofLIMIT 2
– adventistaam