Ver originalSELECT * FROM TB_UNO AS t1LEFT JOIN (SELECT MAX(fecha), caja FROM TB_DOS GROUP BY caja) AS t2 ON (t1.caja=t2.caja)