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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Migration Planning WorkshopIndex on Expression• Simple indexes can containconcatenated columnscreate index totalComp onW2_TABLE(salary, bonus)• Index on expression– Value of the index has beentrans<strong>for</strong>med– May not be the value of any ofthe columns that it is derivedfrom– Optimizer can use this indexCreate index totalComp onW2_TABLE(salary+bonus)W2_TABLEname salary bonusGary 20,000 500Paul 40,000 5,000Matt 400,000 <strong>10</strong>,000Rex 40,000 2,000Rob 200,000 2<strong>10</strong>,000Query / Order on Total Compensation164© 2011 IBM Corporation

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

Saved successfully!

Ooh no, something went wrong!