Create table t (ID int not null, dt date not null);
Insert into t (ID, dt)
Values
(123412345, '20230223'),
(123412345, '20230219'),
(123412345, '20230207'),
(999999999, '20230215'),
(999999999, '20230209');
Select id
From t
Group by id
Having max(dt) = '20230223';