sql语句问题,各位大哥帮忙看看 select * from 表 awhere not exists(select 1 from 表 where type = a.type and id>a.id) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table where id in(select max(id) group by type ) 说的不是很清楚,大概:select * from 数据表 awhere corId (根据corId查询的条件)and id=(select max(id) from 数据表 where type=a.type and corId (根据corId查询的条件)) select * from table where id in(select max(id) from table group by type ) select a.* from 表 a,(select id=max(id) from 表 group by corid)bwhere a.id=b.id select max(corId) as corId,type from table group by type select max(ID),corid,type from 表 group by type ,corid select max(ID),corId,type from tab group by type 帮忙看一下这个SQL句子该怎么写 代码中有部分看不懂,帮忙解释下,谢谢 max的问题。 批量删除的问题,要求二个字段符合要求才删除,不知可不可以用一个命令来处理? 事务疑难杂症,求版主速解 请问如何在SQL SERVER 2000设置管理权限能让管理员都无法打开,但可以让某个用户打开。 存储过程的大问题 此SQL语句如何写 非常郁闷的问题 ASP+存储过程 急,我想查看SQL ERVER的字符集,请问那位高手知道通过什么可以看到。 如何取得系统时间前一天中的所有记录 简单的送分题 (呵呵 只有我不会)
where corId (根据corId查询的条件)
and id=(select max(id) from 数据表 where type=a.type and corId (根据corId查询的条件))
where a.id=b.id
group by type