CS 157B: Database Management Systems II April 3 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 2 Cognos Business intelligence (BI) tool from IBM. Queries and reports Dashboards and scorecards OLAP Data mining predictive analysis Cognos Business Intelligence 10 is available in the IBM Academic Cloud along with a sample data warehouse. Each of you has a student account. There are online tutorials you can try. _
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 3 Cognos Lab URLs to your Cognos accounts: Section 1: Section 2: Log in with your user name and password. ed to you previously. Become familiar with OLAP operations in the Cognos Analysis Studio. Click on “Analyze my business”. Click on “Samples”. Click on “Cubes”. Click on “Sales and Marketing (cube)”. Select “Default Analysis” and click the OK button. Now you can do OLAP operations.
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 4 Cognos Lab: OLAP Operations Set dimensions and measures Drag and drop 2- and 3-dimensional cubes Drill up and drill down Slice and dice Pivot
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 5 Cognos OLAP Documentation Analysis Studio User Guide Access from the Help menu item Also at: m.ibm.swg.im.cognos.ug_cr_pps doc%2Fug_cr_pps_id4763id_ ans_src_tree.html m.ibm.swg.im.cognos.ug_cr_pps doc%2Fug_cr_pps_id4763id_ ans_src_tree.html IBM Cognos Business Intelligence V10.1 Handbook Download from: &cad=rja&ved=0CFUQFjAD&url=http%3A%2F%2Fwww.redbooks.ibm.com%2Fredbooks%2Fpdfs%2Fsg pdf&ei=cghZUeP9C_XD4A O5-IEg&usg=AFQjCNHXoKXy_zncHkYOartqkCM_8uZIFw &cad=rja&ved=0CFUQFjAD&url=http%3A%2F%2Fwww.redbooks.ibm.com%2Fredbooks%2Fpdfs%2Fsg pdf&ei=cghZUeP9C_XD4A O5-IEg&usg=AFQjCNHXoKXy_zncHkYOartqkCM_8uZIFw YouTube videos What is OLAP? What are Dimensions and Measures?
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 6 Other Cognos Features Report generation Dashboard Scorecards Predictive analytics data mining
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 7 Project #4 Dimensional modeling and OLAP Implement a star schema suitable for OLAP operations. Use MySQL. Use Cognos for inspiration and as an example. Fact table Tall and skinny, normalized. Choose your measure and grain. Dimension tables At least three, can be unnormalized. Each dimension should be hierarchical. Populate your tables Use data from Cognos or create your own data.
Department of Computer Science Spring 2013: April 3 CS 157B: Database Management Systems II © R. Mak 8 Project #4 OLAP operations with two-dimensional reports Choose dimensions Generate reports that show combinations of two dimensions. Drill up and drill down Generate base report, drill up report, drill down report Slice and dice Generate base report, slice report, dice report Pivot Generate two reports, one a pivot of the other Generate reports with SQL scripts or with Java programs (Hibernate or JDBC) Do not have to be interactive. No GUI required.