这样的sql如何写急需 select aa.* from b aa ,(select 客户编号,max(金额) from b group by 客户编号) bbwhere aa.客户编号=bb.客房编号 and aa.金额=bb.金额 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.编号,max(定单字段名) from b where 编号 = (select 编号 from a) select aa.* from b aa ,(select 客户编号,max(数量) from b group by 客户编号) bbwhere aa.客户编号=bb.客房编号 and aa.数量=bb.数量 用这个试试select aa.* from b aa ,(select 客户编号,max(日期) from b group by 客户编号) bbwhere aa.客户编号=bb.客房编号 and aa.日期=bb.日期 新手提问(4) 已知有一个列,我如何获得其在sysobjects表中的id的值? 询问两个sql server的问题,急急急 要是不知道原来的SQL密码,那怎么修改,有什么样的方法? SQL 按某个字符自动换行写法?? 刚学SQL server,需要掌握SQL哪些知识? 【高分】计算列的元素个数 服务组的名称可否更改?如何更改! 晕~~~怎么DROP不掉这个存储过程?什么原因?分析分析…… 在SQL Server中的数据update() 这样的sql如何写 如何用sql语句完成这些工作
b aa ,(select 客户编号,max(数量) from b group by 客户编号) bb
where aa.客户编号=bb.客房编号 and aa.数量=bb.数量
select aa.* from
b aa ,(select 客户编号,max(日期) from b group by 客户编号) bb
where aa.客户编号=bb.客房编号 and aa.日期=bb.日期