delete from vehicle where (VLPN,VLPNColor) in (
select t.VLPN,t.VLPNColor from (
select VLPN,VLPNColor,count(*) from vehicle group by VLPN,VLPNColor having count(*)>1
) t
) and VehicleID not in (
select t.VehicleID from (
select max(VehicleID) as VehicleID from vehicle group by VLPN,VLPNColor having count(*)>1
) t
)