Advanced Report Design
CentreVu CMS Custom Reports
Selecting Rows from More Than One Table
6-25
In the example, the row search statement for the first field searches for
exception type #4 (Time in ACW) for a particular date and split. Because the
field is
count(*)
, the field displays the total number of rows that had
exception type #4 for the date and split.
Similarly, the row search statement for the second field searches for
exception type #7 (Time in AUX) for a particular date and split. Again,
because the field is
count(*)
, the field displays the total number of rows
that had exception type #7 for the date and split.
Selecting Rows from More Than One Table
6
For historical reports only, you can merge data from two tables into a
single report field. You can, for example, take the number of ACD calls a
single agent handled (where data is taken from the
dagent
table) and
divide by the total ACD calls handled by the agent’s split (where data is taken
from the
dsplit
table). Or, you can take the ACD calls a split handled in an
intrahour interval (where data is taken from the
hsplit
table) and divide by
the total ACD calls the split handled for the day (where data is taken from the
dsplit
table).
To merge data from two tables into a single report field:
●
The two tables must have at least one database item in common.
Typically, the database items in common are indexes.
●
Both table names must be entered in the
Table
field of the Row
Search ID assigned to the field.
●
For custom historical reports — you can use data from more than one
table and use the same row search ID for multiple tables.
●
At least one “join” clause must appear in the Row Search ID assigned to
the field. A “join” clause searches for the same value for the same item
in both tables. In this way, the data extracted from the rows in both
tables will be related.
A “join” clause has the following format:
tablename1.item1 = tablename2.item1
Where
item1
is a database item that the tables have in common.
Note
For retrieval of data from an exceptions table, you can only
retrieve data for those exceptions that have been turned on for
the particular split, agent, etc., have actually occurred and have
not been deleted from the database because they exceeded the
storage parameters for exceptions.
Summary of Contents for CentreVu
Page 16: ...Preface CentreVu CMS R3V5 Custom Reports Related Documents P 10 ...
Page 44: ...Getting Started CentreVu CMS Custom Reports Deleting a Custom Report 2 10 ...
Page 140: ...Completing Your Custom Report CentreVu CMS Custom Reports Running Custom Reports 5 22 ...
Page 178: ...Database Items and Calculations CentreVu CMS Custom Reports General Information A 2 ...
Page 188: ...Glossary CentreVu CMS Custom Reports GL 10 ...
Page 198: ......