DECLARE @Parts table
(
PartId int,
CreatedDate date,
LeadValue int
)
insert into @Parts(PartId,CreatedDate,LeadValue)
values
(1234,'20210703',5),
(1234,'20211005',90),
(1234,'20211105',50),
(5981,'20211115',70),
(5981,'20211203',60),
(6070,'20211212',20)...