Obtenga las fechas únicas y luego use order by
y limit
:
select date
from (select distinct date from table t) d
order by date desc
limit 3;
Obtenga las fechas únicas y luego use order by
y limit
:
select date
from (select distinct date from table t) d
order by date desc
limit 3;