select id
from table
group by id;