How to update table partwithcompany column name company id by companyid for max partid ?
so i need to make
update partwithcompany set companyid=companyid for max partid
on table parts where partnumber from table parts equal partnumber from table
part withcompany
as example
I have partnumber A74351 on table partswithcompany
this part exist on table parts multiple time
so i will get company id from max partid where partnumber=partnumber
that meaning max partid on table parts for partnumber A74351 =3500
then i will get company id from partid 3500 that will be 5003
and update companyid column on table partwithcompany with value 5003