如何按某一字段不重复取记录行 select a.* from 表 a where a.name=(select top 1 name from 表 where id=a.id order by name) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.* from 表 a where not exists(select 1 from 表 where id=a.id and name<a.name) select distinct id from 表名 select distinct id from [table] sql可以这样实行吗 一个关于累加的问题(百分题) rollup问题 呵呵,一个简单的sql语句,请问大虾 别名与count函数的问题 怎么让在管理控制台里对表的操作,表示全部记录的功能无效? For xml问题! 高手请教 请教高手!如何设计表达式的数据表 无法安装sql server7.0 VARCHAR(50)转换为NUMERIC(9,1)是出错! 请教有关于动态SQL语句的问题!!!
a.*
from
表 a
where
not exists(select 1 from 表 where id=a.id and name<a.name)