求一個sql語句提取一個表... select *from 表名 as t1where name in( select top 2 name from 表名 as t2 where t1.bid=t2.bid) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select identity(int,1,1) as id,* into newtable from [table] select *from newtable as t1where id in( select top 2 id from newtable as t2 where t1.col1=t2.col1 ) THX樓上....用樓上的方法解決了^_^ SQL语句!!谢谢!! 高手帮忙:Sql字符串替换问题 高手进来看看呀,实在是撑不住了 完全崩溃了 求个SQL统计的SUM语句 [急...]怎样用另一个表的字段对本表查询进行OrderBy排序? 下面SQL语句在查询管理器执行的好好的怎么在前台和存储过程执行就出错呢? 请问如何恢复登陆名?急!!! Sql server的事物问题 关于varbinary存储的问题。万望大家帮一把 数据库移植,请各位大虾指点 求各交叉表的查询 求一句SQL语句,昨天已发了贴的但是没有解决
select *
from newtable as t1
where id in(
select top 2 id
from newtable as t2
where t1.col1=t2.col1 )