2009年3月12日
摘要: oracle的分析函数over 及开窗函数 一:分析函数over Oracle从8.1.6开始提供分析函数,分析函数用于计算基于组的某种聚合值,它和聚合函数的不同之处是 对于每个组返回多行,而聚合函数对于每个组只返回一行。 下面通过几个例子来说明其应用。 1:统计某商店的营业额。 date ... 阅读全文
posted @ 2009-03-12 15:21 一江水 阅读(7946) 评论(0) 推荐(1) 编辑
摘要: C:\>sqlplus test/test@orcl SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 3月 12 10:34:08 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. 连接到: Oracle Database 10g Enterprise Edition Rel... 阅读全文
posted @ 2009-03-12 10:37 一江水 阅读(3131) 评论(0) 推荐(0) 编辑