查询问题 select * from tablename awhere c=(select max(c) from tablename where a=a.a) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select aa.* from table aa,(select a,max(c) from table group by a) bbwhere aa.a=bb.a and aa.c=bb.c select * from tablename awhere c=(select max(c) from tablename where a=a.a) TO:lsxaa(小李铅笔刀) 没有为第 2 列(属于 'bb')指定列。3Q select a.* from table a,(select a,max(c) from table group by a) bwhere a.a=b.a and a.c=b.c这里已经有多次提出类似的问题了。 select * from tablenamegroup by a having c=max(c) 3K :zicxc(冒牌邹建 V0.3) 数据库更新(查询记录是否存在,存在就更新) 有關數據轉換問題 请教sql在.net下的超时问题 请教:头疼很久了的数据库的问题~~ 紧急!日志文件太大,无法恢复数据库,能不能不要日志文件进行恢复 server 2008 r2 下安装 sql 2008 提示 无法安装framework 3.5 这是为什么啊? 如何能捕获程序执行的SQL语句. 请教 SQL Server 2008 远程链接问题 一个sql问题 我想动态查询一个或几个字段的合计值,应该怎么写? 哪位兄弟知道哪有数据库基础方面的电子书下载么?谢谢 急!一个郁闷的问题,为什么删除不掉记录,在线等
from table aa,(select a,max(c) from table group by a) bb
where aa.a=bb.a and aa.c=bb.c
where c=(select max(c) from tablename where a=a.a)
没有为第 2 列(属于 'bb')指定列。3Q
from table a,(select a,max(c) from table group by a) b
where a.a=b.a and a.c=b.c这里已经有多次提出类似的问题了。
group by a having c=max(c)