Obtenez les dates uniques, puis utilisez order by
et limit
:
select date
from (select distinct date from table t) d
order by date desc
limit 3;
Obtenez les dates uniques, puis utilisez order by
et limit
:
select date
from (select distinct date from table t) d
order by date desc
limit 3;