首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

求 SELECT语句,该如何解决

2012-01-23 
求 SELECT语句假设有表type字段有name,count我用select*fromtypeorderbycount查询出的数据如下:namecount1

求 SELECT语句
假设有表type       字段有name,   count
我用select   *   from   type   order   by   count   查询出的数据如下:  
name               count  
11                     11
22                     22
33                     33
44                     44
55                     55
现在我要查询出的数据不显示最上面的一行     或者两行     怎么实现???




[解决办法]

or

select * from type
where name not in (select top 2 name from type order by name )

热点排行