WITH myTable2 AS
(
SELECT vinid, ROW_NUMBER() OVER (ORDER BY vinid) AS sequence
FROM VehicleDescription
)
UPDATE genericequipment
SET VinID = VehicleDescription.vinid
FROM VehicleDescription
JOIN genericequipment on VehicleDescription.VinPattern = genericequipment.vinPattern;