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 WorkshopFETCH FIRST/ ORDER BY in Subselect• FETCH FIRST and ORDER BY clauses are nowallowed in subselects.• In this example both clauses are used in thesubselect as a way to select the top <strong>10</strong> rows fromtable T1 as ordered by columns C2 and C1.INSERT INTO T2(SELECT C1, C2, C3FROM T1FETCH FIRST <strong>10</strong> ROWS ONLYORDER BY C2, C1);12© 2011 IBM Corporation

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

Saved successfully!

Ooh no, something went wrong!