Získejte jedinečná data a poté použijte order by
a limit
:
select date
from (select distinct date from table t) d
order by date desc
limit 3;
Získejte jedinečná data a poté použijte order by
a limit
:
select date
from (select distinct date from table t) d
order by date desc
limit 3;