select id,online=max(online) from table where online>=10 group by id