This should work if Modify column is datetime
select a.Product_Code,
a.UnitID,
a.Price,
a.Modify
from dbo.Products as a
join (
select Product_Code,
UnitID,
max(Modify) as Modify
from dbo.Products
group
by Product_Code,
UnitID
) as b
on b.Product_Code = a.Product_Code and b.UnitID = a.UnitID and b.Modify = a.Modify