--测试代码
declare @tb1 table(id int identity(1,1),score int)
insert @tb1
select 11 union all
select 22 union all
select 33 union all
select 44 union all
select 55 union all
select 66 union all
select 77 union all
select 88 union all
select 99 union all
select 100
select * from @tb1 where id not in(select top 3 id from @tb1 order by id asc) and id not in (select top 4 id from @tb1 order by id desc)