请教高手~~,简单的SQL语句 我要查询 数据库 中 ,价格最贵的那本书的名称.select book.name ,max(book.price) from bookk group by book.name得出得数据不是我想要得,这该怎么写啊?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.name,a.price from bookk a where not exists(select * from bookk where price>a.price) 你这样应该可以阿select name from book a where not exists(select 1 from book where name=a.name price>a.price) select name from book a where not exists(select 1 from book where name=a.name and price>a.price)--少打了个and select top 1 name from book order by price desc select name,maxprice from bookk a,(select max(book.price) as maxprice from bookk ) bwhere a.price=b.maxprice select name,price from book where price in(select max(price) from book) SQL SERVER 2005(或2000)日志分析 SQL2005登录问题 如何使用递归或其他方法获取父内容所有子内容。 求一条sql语句 现在需要把DBF格式数据表导入SQLSERVER,数据量过100万条,请问有没有好用的导入导出工具,谢谢~ update触发器为什么不执行? sql语句里怎样同时更新两张表里的记录? SQL的高手,版主请解决这个问题,这个问题还未有满意的答案 请高手给出查询语句 关于批量插入修改删除的方案 求一个小数处理的办法,在线等. 如何在mssql中实现查询一个月前的记录
where a.price=b.maxprice