create cursor tt (aaa d)
insert into tt values (date(2020,12,01))
insert into tt values (date(2020,12,30))
insert into tt values (date(2021,01,05))
insert into tt values (date(2021,01,05))
select *, recno() jlh from tt where aaa in (select max(aaa) from tt)