23 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Answers: Advanced...

Post on 08-Jan-2018

217 views 0 download

description

Copyright © 2009, Oracle. All rights reserved Advanced Features Combining request criteria by using set operations Executing direct database requests Editing logical SQL generated by a request Creating a link to a saved request Creating an Excel Web Query file

Transcript of 23 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Answers: Advanced...

23Copyright © 2009, Oracle. All rights reserved.

Oracle Business Intelligence Answers: Advanced Features

Copyright © 2009, Oracle. All rights reserved.23 - 2

Objectives

After completing this lesson, you should be able to:• Combine request criteria by using set operations• Execute direct database requests• Edit logical SQL that is generated by a request• Creating a link to a saved request• Create an Excel Web Query file

Copyright © 2009, Oracle. All rights reserved.23 - 3

Advanced Features

• Combining request criteria by using set operations• Executing direct database requests• Editing logical SQL generated by a request• Creating a link to a saved request• Creating an Excel Web Query file

Copyright © 2009, Oracle. All rights reserved.23 - 4

Combining Request Criteria by Using Set Operations

Combine criteria from one or more subject areas:• Subject areas may be organized with similar information

depending on business needs.Combine results from two or more requests into a single request:• Example: Combine results from a subject area

containing all active customers with results from a subject area containing customers who have ordered one or more products.

Copyright © 2009, Oracle. All rights reserved.23 - 5

Set Operators

Set operators and their effects on results:

Returns rows from first request that are not in other requestsMinus

Returns rows that are common to all requestsIntersect

Returns all rows from all requestsUnion All

Returns nonduplicate rows from all requestsUnion

Effect on ResultsSet Operator

Request 1 Request 2

Row AAA Row BBB

Row BBB Row CCC

Request 1 Request 2

Row AAA Row BBB

Row BBB Row CCC

Request 1 Request 2

Row AAA Row BBB

Row BBB Row CCC

Request 1 Request 2

Row AAA Row BBB

Row BBB Row CCC

Union Union All

Intersect Minus

Copyright © 2009, Oracle. All rights reserved.23 - 6

Combining Results of Multiple Requests

1. Build a request.2. Combine with a similar request.3. Construct the combined request.4. Apply a set operator.5. Check the results.

Copyright © 2009, Oracle. All rights reserved.23 - 7

1. Build a request.

Build a request with desired columns and filters.

Request returns customers with dollars between 5000 and 15000.

Copyright © 2009, Oracle. All rights reserved.23 - 8

2. Combine with a similar request.

Click the “Combine with Similar Request” button and select a subject area.

Select the same subject area or a

different subject area.

Copyright © 2009, Oracle. All rights reserved.23 - 9

3. Construct the combined request.

Add columns and filters to the new request.

The number of columns and

data types must be consistent

across all criteria.

New request returns customers with dollars between

10000 and 20000.

Click Edit to add additional criteria.

Copyright © 2009, Oracle. All rights reserved.23 - 10

4. Apply a set operator.

Click the Set button and select the set operator.

Combined request returns the union of

customers with dollars between 5000

and 20000.

Copyright © 2009, Oracle. All rights reserved.23 - 11

5. Check the results.

Results of two or more requests are combined into a single request.

The table displays the union of all customers with dollars between 5000 and 20000.

Copyright © 2009, Oracle. All rights reserved.23 - 12

Direct Database Request Privileges

• Users with appropriate privileges can create and issue direct database requests to physical back-end data sources.

– Results can be displayed and manipulated in Oracle Business Intelligence Answers and incorporated into Interactive Dashboards.

• Required privileges include:– Edit Direct Database Requests– Execute Direct Database Requests

Copyright © 2009, Oracle. All rights reserved.23 - 13

Changing Direct Database Request Privileges

Changes are made in Oracle BI Presentation Services Administration.

1

3

2

Copyright © 2009, Oracle. All rights reserved.23 - 14

Creating and Executing a Direct Database Request

1. Create a direct request.2. Construct a direct database request.3. Check the results.

Copyright © 2009, Oracle. All rights reserved.23 - 15

1. Create a direct request.

Click Create Direct Request on the Answers start page.

Copyright © 2009, Oracle. All rights reserved.23 - 16

2. Construct a direct database request.Follow the on-screen instructions to create the request.

1

2

4 3

5

Copyright © 2009, Oracle. All rights reserved.23 - 17

3. Check the results.

Results are displayed in the Answers workspace.

Copyright © 2009, Oracle. All rights reserved.23 - 18

Editing Logical SQL Generated by a RequestFor advanced users and developers with specific privileges: 1

2

3

Copyright © 2009, Oracle. All rights reserved.23 - 19

Editing Logical SQL Generated by a Request

Copyright © 2009, Oracle. All rights reserved.23 - 20

Creating a Link to a Saved Request

For users with permission to access the Advanced tab:1

2

3

Copyright © 2009, Oracle. All rights reserved.23 - 21

Creating an Excel Web Query File

For users with permission to access the Advanced tab:1

2

3

Copyright © 2009, Oracle. All rights reserved.23 - 22

Viewing an Excel Web Query File

1

3

2

Copyright © 2009, Oracle. All rights reserved.23 - 23

Summary

In this lesson, you should have learned how to:• Combine request criteria by using set operations• Execute direct database requests• Edit logical SQL that is generated by a request• Create an Excel Web Query file

Copyright © 2009, Oracle. All rights reserved.23 - 24

Practice 23: Overview

This practice covers the following topics:• Combining requests by using set operations• Executing direct database requests