select autoid,fa,fb
from A where autoid in
(select min(autoid) from A
group by fb)
from A where autoid in
(select min(autoid) from A
group by fb)
解决方案 »
- 如何查询一段数据的末几位
- 求助!
- 两个问题:1.内联函数里如何申明变量,2.存储过程里如何接受其他存储过程返回的结果集
- 链接服务器 "(null)" 的 OLE DB 访问接口 "MICROSOFT.JET.OLEDB.4.0" 不包含表 "sheet1$"。
- 关于 SET@* = insert into [*] output inserted.id values(*) 是否可行?或者类似解决方法!
- 关于DTS,数据源能不能动态?
- 菜鸟问题...
- 如何删除物理位置上的头几行?
- 咨询一下大家,关于我设计的C/S结构数据库
- select: 从表a中选择前n个记录,按降序排列,怎么select?
- 哪位高手请帮帮忙,建立与服务器的连接?
- 紧急求助:关于sql server 2000数据库安全的问题
from A where autoid in
(select min(autoid) from A
group by fb)
正确
where 表A.autoid=T.autoid