如何取消某一列的重复记录 不好意思上面写错了,结果因该是id el_no el_ver 2 A 1 4 B 3 5 C 2 ---------为什么不能修改自己的贴呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试where max(el_ver) group by el_no select * from tb where not exists(select 1 from tb a where a.id=tb.id and a.el_ver<tb.el_ver) sorry,上面写反了,应该是这个select * from tb where not exists(select 1 from tb a where a.id=tb.id and a.el_ver>tb.el_ver) select *from ta awhere not exists(select 1 from ta where a.el_no = el_no and el_ver > a.el_ver ) 关于inner join 问题,如果把B表内容也显示出来该怎么办? 请教数据库查找出错 如何操作存储过程返回的记录集? 大家看看,ACCESS2000的自动编号类型在SQL SERVER 2000中要怎么实现这个功能,谢谢 一个很奇怪的问题 从sql表中抽出部分数据,并生成一个二维表,怎么操作? SQL Compact 3.5 下多条件排序分页查询该如何做? 如何保证数据不被修改 从access 把数据导入 Sqlserver后,如何验证数据的正确性? 请教各位高手,更新带分组的SQL语句... 存储过程中创建临时表遇见的问题 ACCESS表转为SQL SERVER表
select * from tb where not exists(select 1 from tb a where a.id=tb.id and a.el_ver>tb.el_ver)
from ta a
where not exists(select 1 from ta where a.el_no = el_no and el_ver > a.el_ver )