保留重复中最小的 保留重复的sa中年龄最小的,比如有多个sa是2000的,最小年龄位25,则保留一个,其他删除! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 作业.......orz提示:min(),group by select * from tb t where not exists(select 1 from tb where sa=t.sa and age<t.age) select * from ex a where not exists (select 1 from ex where sa=a.sa and age>=a.age) select * from ex a where not exists (select 1 from ex where sa=a.sa and age<a.age) 保留重复的sa中年龄最小的,比如有多个sa是2000的,最小年龄位25,则保留一个,其他删除! delete from ex a where exists (select 1 from ex where sa=a.sa and age>a.age) 用企业管理器修改表中的数据,怎么样提示是否保存? 请教一个带返回值的存储过程的问题 急等!!~~~,200分求这样的SQL语句,有能力的来帮助一下 请教一个简单的问题,及时给分! 如何用命令导出sql server DDL 脚本??? 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。 判断存储过程是否存在的代码该怎么写? 求教“将字符形变量转化成日期形变量”的sql语句? #开头的表是不是看不见? (紧急求助!!!)VFP中 如何根据一个表的数据,对别一个表的数据进行一一对应的更新 关于SQL server2000配置服务器和客户端的问题 问了递归的问题
where not exists(select 1 from tb where sa=t.sa and age<t.age)