求sql 语句2! select a.* from 表 a join( select id=min(id) from 表 group by type)b on a.id=b.id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.name,a.type from yourtable a,(select min(id) id,type from yourtable group by type)bwhere a.id=b.id select a.* from 表 a where a.id in(select min(id) from 表 group by type) which one is the best! thanks ! select a.* from 表 a join( select id=min(id) from 表 group by type)b on a.id=b.id SQL Server 2005 如何附加新组件 [DBNETLIB][ConnectionOpen(Connect()).]SQL.Server不存在或拒绝访问! 本地的access表与远程的sqlserver作连接查询? SQL SERVER登录问题 急!求一条sql语句 MSSQL2008维护计划作业失败 江湖救急!请各位大哥帮帮小弟! 我有个表,由于用得人比较多,不知道什么原因,表里的有些字段内容,老是无缘无故地给没了.在等! 有经验的朋友请来看看吧(操作系统小问题!) SQL Server 2005 简体中文开发版 急!!还是关于数据库配置的问题,在线等待 如何为表取别名
(
select min(id) id,type from yourtable group by type
)b
where a.id=b.id
select id=min(id) from 表 group by type
)b on a.id=b.id