摘要: --返回每个雇员处理过的订单的最近日期.--select empid, max(orderdate) as maxOrderDate from Sales.Orders group by empid--封装上面的结果集, 并和order表连接, 为每个雇员返回其订单日期最近的订单信息./*with t as (select empid, max(orderdate) as maxOrderDate... 阅读全文
posted @ 2012-04-10 14:29 MyCoolDog 阅读(521) 评论(0) 推荐(0) 编辑