Ver originalUPDATE kilometrajes T1, (SELECT MAX(id_km) max_id_kim FROM kilometrajes WHERE Numero_de_camion = 'F012') T2 SET T1.sino = '1' WHERE T1.id_km = T2.max_id_kim