Subtotal rows can help you analyze data, especially if there are large amounts of data, different dimensions to the data, data contained in different tables, or even different databases altogether. For example, a sales manager might find reports on sales figures broken down by sales representative, region, and quarter to be useful in understanding patterns in sales. Subtotals for the data give the sales manager a picture of overall sales from different perspectives. Analyzing this data is easier when summary information is provided based on the criteria that the sales manager wants to compare.
With OLAP, the procedure for analyzing and computing row and column subtotals is invisible to the end-user. The following diagram shows conceptually how Adaptive Server Anywhere creates subtotals:
This step yields an intermediate result set. The query is tabulated according to the conditions set out in it.
OLAP creates the subtotals and attaches them to the result set.
The rows are arranged according to the ORDER BY clause in the query.
NoteThis sequence is seamless to the end-user. |
SQL Anywhere Studio 9.0.2
Copyright © 1989–2004 Sybase, Inc. Portions copyright © 2001–2004 iAnywhere Solutions, Inc. All rights reserved.