Código SQL [-]SELECT nexp, max(ord) FROM tbExpedientes group by nexp
SELECT nexp, max(ord) FROM tbExpedientes group by nexp