Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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

2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 2 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

3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 3 Introducing Sample Lite

4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 4 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

5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 5 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 EMAIL 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

6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 6 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_EMAIL ACCOUNT_MGR_ID NLS_LANGUAGE NLS_TERRITORY WAREHOUSES WAREHOUSE_ID WAREHOUSE_NAME LOCATION_ID HR OE EMPLOYEESREGIONS

7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 7

8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 8 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

9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 9

10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 10 Exploring the Data Model Editor User Interface

11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 11 Examining Data Model Properties

12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 12

13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 13 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)

14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 14

15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 15 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.

16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 16 Step1: Defining Default Data Source and Output Options 1 2 3

17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 17 Step 2: Adding a SQL Query Data Set 1 2 3 4 5

18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 18 Step 3: Building a Query in Query Builder

19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 19 Step 3: Building a Query in Query Builder: Select Objects

20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 20 Step 3: Building a Query in Query Builder: Define Relations

21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 21 Step 3: Building a Query in Query Builder: Select Columns

22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 22 Step 3: Building a Query in Query Builder: Add Aliases and Conditions

23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 23

24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 24 Step 3: Building a Query in Query Builder: View Results and Save Query 1 2 3

25 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 25 Step 4: Saving the Data Model 1 2

26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 26 Step 5: Viewing XML Output and Saving Sample Data 1 2 3

27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 27 Creating a Report Based on a Data Model 1 2

28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 28 Describing Parameters and LOVs

29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 29

30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 30 Adding Parameters 1 2 Create a parameter. 3456 7 8

31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 31 Additional Examples of Parameters Reorder the parameters. Parameter Type = Menu

32 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 32 Additional Examples of Parameters Date picker is restricted to the year 2010. Data Type = Date Data Type = Menu

33 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 33 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

34 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 34 Adding a Bind Variable to a Query Enter the parameter value and click Apply.

35 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 35 Configuring Parameter Settings for a Report 1 2

36 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 36 Adding LOVs: SQL Query Type 1 2 3 4 5 Create a list of values.

37 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 37 Adding LOVs: SQL Query Type 6 7 8

38 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 38 Additional Example of an LOV

39 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 39 Cascading Parameters

40 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 40 Viewing a Report with Parameters 1 2 3

41 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 41 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

42 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 42 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

43 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 43 Quiz: Overview This quiz examines your knowledge of the concepts discussed in the lesson.

44 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 44 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

45 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 45 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

46 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4 - 46 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


Download ppt "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."

Similar presentations


Ads by Google