select top 1 * from man where id < 5 order by id desc select top 1 * from man where ID>5 order by ID asc