4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Using Data Model Editor to Create Data Models Based on a SQL Query Data Set
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Objectives After completing this lesson, you should be able to: Describe samples used for the course Describe the features of Data Model Editor Create and edit a data model based on a SQL Query data set Define parameters and a list of values (LOV) for a data model Create reports based on these data models
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Introducing Sample Lite
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Introducing Sample Schemas Sample schemas: Are provided with Oracle Database Provide a common platform for examples in each release of Oracle Database Are a set of interlinked schemas
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Introducing Sample Schemas: HR Data Model COUNTRIES COUNTRY_ID COUNTRY_NAME REGION_ID DEPARTMENTS DEPARTMENT_ID DEPARTMENT_NAME MANAGER_ID LOCATION_ID EMPLOYEES EMPLOYEE_ID FIRST_NAME LAST_NAME PHONE_NUMBER HIRE_DATE JOB_ID SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID JOBS JOB_ID JOB_TITLE MIN_SALARY MAX_SALARY JOB_HISTORY EMPLOYEE_ID START_DATE END_DATE JOB_ID DEPARTMENT_ID LOCATIONS LOCATION_ID STREET_ADDRESS POSTAL_CODE CITY STATE_PROVINCE COUNTRY_ID REGIONS REGION_ID REGION_NAME HR
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Introducing Sample Schemas: OE Data Model PRODUCT INFORMATION PRODUCT_ID CATEGORY WEIGHT_CLASS WARRANTY_PERIOD SUPPLIER_ID PRODUCT_STATUS LIST_PRICE MIN_PRICE CATALOG_URL ORDER_ITEMS ORDER_ID LINE_ITEM_ID PRODUCT_ID UNIT_PRICE QUANTITY ORDERS ORDER_ID ORDER_DATE ORDER_MODE CUSTOMER_ID SHIP_MODE ORDER_STATUS SALES_REP_ID ORDER_TOTAL PRODUCT DESCRIPTIONS PRODUCT_ID LANGUAGE_ID PRODUCT_NAME PRODUCT_DESCRIPTION INVENTORIES PRODUCT_ID WAREHOUSE_ID QUANTITY_ON_HAND CUSTOMERS CUSTOMER_ID CUST_FIRST_NAME CUST_LAST_NAME CUST_ADDRESS_TYP STREET_ADDRESS POSTAL_CODE CITY STATE_PROVINCE COUNTRY_ID PHONE_NUMBERS CREDIT_LIMIT CUST_ ACCOUNT_MGR_ID NLS_LANGUAGE NLS_TERRITORY WAREHOUSES WAREHOUSE_ID WAREHOUSE_NAME LOCATION_ID HR OE EMPLOYEESREGIONS
Copyright © 2011, Oracle and/or its affiliates. All rights reserved
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Introducing Data Model Editor Data Model Editor allows you to: Create data sets Query data Structure data Aggregate data Customize data Create calculations Perform advanced tasks
Copyright © 2011, Oracle and/or its affiliates. All rights reserved
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Exploring the Data Model Editor User Interface
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Examining Data Model Properties
Copyright © 2011, Oracle and/or its affiliates. All rights reserved
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Supported Data Sources BI Publisher supports the following data sources: SQL query MDX query (including Essbase) Oracle BI Analysis View object Web service LDAP query XML file MS Excel file HTTP(XML/RSS feed)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Creating a Simple Data Model Based on a SQL Query Data Set 1.Define default data source and output options. 2.Add a SQL query data set. 3.Build a query in Query Builder. 4.Save the data model. 5.View the XML output and save the sample data.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step1: Defining Default Data Source and Output Options 1 2 3
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 2: Adding a SQL Query Data Set
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 3: Building a Query in Query Builder
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 3: Building a Query in Query Builder: Select Objects
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 3: Building a Query in Query Builder: Define Relations
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 3: Building a Query in Query Builder: Select Columns
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 3: Building a Query in Query Builder: Add Aliases and Conditions
Copyright © 2011, Oracle and/or its affiliates. All rights reserved
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 3: Building a Query in Query Builder: View Results and Save Query 1 2 3
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 4: Saving the Data Model 1 2
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Step 5: Viewing XML Output and Saving Sample Data 1 2 3
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Creating a Report Based on a Data Model 1 2
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Describing Parameters and LOVs
Copyright © 2011, Oracle and/or its affiliates. All rights reserved
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Adding Parameters 1 2 Create a parameter
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Additional Examples of Parameters Reorder the parameters. Parameter Type = Menu
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Additional Examples of Parameters Date picker is restricted to the year Data Type = Date Data Type = Menu
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Adding a Bind Variable to a Query The original SQL Query for the simple salary report 1 The SQL query for the salary report after the bind variable is added 2 3 4
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Adding a Bind Variable to a Query Enter the parameter value and click Apply.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Configuring Parameter Settings for a Report 1 2
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Adding LOVs: SQL Query Type Create a list of values.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Adding LOVs: SQL Query Type 6 7 8
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Additional Example of an LOV
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Cascading Parameters
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Viewing a Report with Parameters 1 2 3
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Summary In this lesson, you should have learned how to: Describe samples used for the course Describe the features of Data Model Editor Create and edit a data model based on a SQL Query data set Define parameters and a list of values (LOV) for a data model Create reports based on these data models
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Practice 4: Overview This practice covers the following topics: Creating and editing a data model based on a SQL query data set Defining parameters and LOVs for a data model Creating an auto-generated RTF template Viewing a report and changing parameter attributes by using Report Editor
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Quiz: Overview This quiz examines your knowledge of the concepts discussed in the lesson.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Quiz A data model is an object that resides in the Catalog as a separate object and contains a set of instructions for BI Publisher to retrieve and structure data for a report. a.True b.False
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Quiz You use the “Design and Output” pane of the Query Builder to display and select objects from which you can build queries. a.True b.False
Copyright © 2011, Oracle and/or its affiliates. All rights reserved Quiz You can add parameters to a data model definition, enabling users to interact with reports and dynamically specify data of interest. a.True b.False