19.08.2015 Views

DB2 9 & 10 for z/OS Overview

DB2 9 & 10 for zOS Overview - The Open Systems Group

DB2 9 & 10 for zOS Overview - The Open Systems Group

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Migration Planning WorkshopMore OLAP Specifications• Moving Sum and Moving Average– New <strong>DB2</strong> <strong>10</strong> NFM specifications (aggregate functions) that compute asingle value <strong>for</strong> the current row based on some or all the rows in a definedgroup.– Supports cumulative sums and moving averages by using a window.– A window can specify three optional components:• Partitioning of the result table using PARTITION BY clause (in <strong>DB2</strong> 9).• Ordering of rows within a partition using ORDER BY clause (in <strong>DB2</strong> 9).• Aggregation group by using ROW or RANGE clause• Two mandatory components need to be specified <strong>for</strong> an aggregation group.– Keyword ROWS to indicate a physical group … or– Keyword RANGE to indicate a logical group … and– The starting and ending row of the aggregation group– Cannot be used within an XMLQUERY, XMLEXISTS, or as an argument ofan aggregate function.– New -20117 SQL code to indicate an invalid window specification.34© 2011 IBM Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!