Professional Documents
Culture Documents
Changes include:
Steps for adding a prompt (p. 20-21)
Logical operator clarification (p. 25)
Steps for adding criteria based on condition type (p. 27)
Definition of each condition type (p. 28)
Adding criteria from prompt page (p. 29)
Adding criteria from criteria page (p. 29)
Training Services
Organizational Effectiveness
612-626-1373
trngsvcs@umn.edu
www.umn.edu/ohr/trainingservices
Query Manager
Reference Manual
4-26-10
Training Services
Organizational Effectiveness
612-626-1373
trngsvcs@umn.edu
www.umn.edu/ohr/trainingservices
QUERY MANAGER
Reference Manual
First printing 10-16-09
Revised 10-19-09, 4-26-10
The University of Minnesota is committed to the policy that all persons shall have equal access to its programs, facilities, and employment
without regard to race, color, creed, religion, national origin, sex, age, marital status, disability, public assistance status, veteran status, or
sexual orientation. This publication/material is available in alternative formats upon request. Please contact University of Minnesota
Training Services, 260 West Bank Office Building, 1300 South 2nd Street, Minneapolis, MN, 612-626-1373.
Printed on recycled and recyclable paper with at least 10 percent postconsumer material.
2010 Regents of the University of Minnesota. All rights reserved.
Table of Contents
Overview.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Validation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Locating Queries.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Basic Search.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Advanced Search. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Search Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Query Output Options.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Editing an Existing Query.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Save As Queries .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Fields Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Edit Function.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Aggregate.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Reorder/Sort Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Query Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Expressions Page.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Prompts Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Criteria Page.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Having Page.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Viewing SQL.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Query Options.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Running Queries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Locating a Record.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Show Fields.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Step-by-Step Directions for PeopleSoft Query.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Saving a New Query.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Overview
When a transaction is entered in the system, the data is stored in tables (records). Each
individual piece of data can be identified by the column (field) and row (transaction) it is in.
When a query is created, the data to be included is selected by specifying which columns and
rows the system should retrieve.
Within PeopleSoft there are many ways to access this data: inquiries, generic reports, nVision
reports, and queries all access data within the system.
The other methods of retrieving data are fairly predefined. There may be certain selection
criteria to allow the user to limit what information is retrieved, but for the most part there is
little that can be done to change what information is retrieved. The Query module, however,
allows end users to define their own request for information.
The Query Manager allows users to view existing queries just as Query Viewer does, but it also
allows users to modify existing queries and create new or private ones. Individuals may want to
modify existing queries to limit the results or summarize the detail.
Queries that are public cannot be modified. However, users may use public queries as a basis
for a custom query. New queries can be created using existing queries or by selecting records
(tables) that contain the desired information. The flexibility of this area is limited only by
a users security access, which determines if that user has the rights to view the data being
requested by the query.
Validation
Validation is the process that ensures entered data falls within acceptable boundaries. Various
methods may be employed to determine the accuracy of financial information. Units should
designate at least one individual to be responsible for validation.
There is not one set way to validate queries. In fact, depending on the type of query, the
validation method may differ significantly. Keep these key things in mind before validating:
There needs to be a complete understanding of the requirements of
the query, its purpose, and how it will be used.
Knowledge of the data worked with is essential. It is most
beneficial if there is some exposure to the front end system and
how transactions flow through the process prior to creating query.
However, researching data as queries are developed can provide as
much or more knowledge.
Validation does not have to occur each time the query is run, only
when it is developed or if there are major changes. Also, it is a
requirement that the query validator is comfortable with the data
and that the data is correct. If the criteria is changed and the query
validator is certain of the data before the query is run and is certain
the criteria is correct, then it is up to the query validator whether
these steps are performed.
Public queries have gone through extensive testing, but the key is to know if it is returning the
same data that is expected. Review the query setup, in particular the records and the criteria.
Ensure that what is being excluded from the results is known.
Limit results to a small subset (one DeptID, one user, etc.). Review the results and verify them
within the module. If the query is returning results that match the system, it is likely correct.
Module review can be along the lines of inquiries to double check the transactions, or run a
report that would show the total for a comparable timeframe as the query.
Performing a couple of these small subset reviews (two to three DeptIDs or users) to validate
one sample may not be enough.
In situations where calculations are being performed by the query, a detail query could be
developed and validated outside Query Manager. Those results could be used to validate the
summary query.
Field Name
Field Description
Access Group Name This is a grouping of records that are used within a particular module.
Description
Folder Name
Query Name
Note that the naming convention has not been followed exclusively.
Abbreviation
CEO
Abbreviation
FCA
Module
Contracts
FEX
FFG
FGL
FGM
FAP
FAR
Module
Enterprise
Components
Billing
Purchasing
eProcurement
Asset
Management
Payables
Receivables
FBD
Budgets
FTR
Expenses
Financial Gateway
General Ledger
Grants
Management
Projects
Program
Management
Treasury
DBI
DPO
DPV
FAM
FPC
FPG
Type
User. The other options (Archive, Process, Role) are not being used.
By default, only the first 20 records appear on the page. To see more of the list, use the
navigation buttons and links located on the header bar. To display 100 of the records, click
<View 100> and use the scrollbar to go through the rest of the list, or use the advanced search
option to limit the results further. The maximum number results returned is 300.
For each search option, the condition can be set according to the following options:
Begins with
Less than
Less than or equal to
Equal to
Greater than
Greater than or equal to
Contains
Not equal to
In
Between
Search Results
Once a search is performed, the resulting queries will appear below the Query Parameters.
In situations where there are many resulting queries, refining the search using additional
fields is helpful.
Field Name
Field Description
Select
Query Name
Name identified.
Description
Owner
Public or private.
Folder
Edit
Run to HTML
Run to Excel
Schedule
When <Run to HTML> is clicked, the output opens in a web window or tab. Results can be
downloaded from HTML to Excel or CSV (comma separated value) files.
Click <Run to Excel> to download the query directly to an Excel spreadsheet or CSV text file.
The first row in the spreadsheet will display the total number of rows included in the spreadsheet.
Note: If the spreadsheet cannot include all of the rows from the entered query, the first row will
displayin a red fontthe total number of rows from the entered query that are included in
the spreadsheet. The maximum row limit for Excel is 1,048,474.
Tab Name
Tab Description
Records
Query
Shows all records and their fields for the selected records. This is where
the fields that display along with their criteria can be selected.
Expressions
Prompts
Allow users to change the limiting criteria each time the query is run.
Fields
Shows the fields that will display, along with the column order, the sort
order, and any criteria that have been defined.
Criteria
Having
View SQL
View the query in sentence-like structure. This is the SQL query that
has been written using the tabs in Query Manager.
Run
Save As Queries
Original information will default in
Update information
Field Name
Field Description
Query Name
The name of the query. Name the query in such a way as it will make
sense to everyone who needs to access it. Best practice would be to
develop a naming convention.
Description
Folder
This field is also available to limit query results when performing searches.
Query Type
Leave as default.
Owner
Private will be the only option. Users can only create private queries.
This field is also available to limit query results when performing searches.
Query Definition
This field is useful to understand what rows of data the query will
return, especially when sharing queries with other users.
Fields Page
The Fields page identifies the fields that will appear in the results when the query is run. From
this screen, a number of other options can be defined or modified:
Selection criteria
Sort order
The order the fields appear in the results
The column header
Criteria/prompts/expressions on the fields
10
Field Name
Field Description
Col
Identifies the order the fields will appear in the results from left to
right.
Record.Fieldname
Identifies the record and field selected. The record alias is the alpha
character to the left of the period, and the field name is in all caps to
the right of the period. The field description follows after the dash. The
record being used is assigned an alphabetic alias on the Query tab to
find the actual record name associated with the alias.
Format
Ord
If the field is the first sort field, a 1 appears and the system sorts
rows based on this field first. The second sort field that is selected is
numbered 2, and so on.
The table being queried may include fields that use a Translate table. If
so, the field contains a short code telling the user which Translate table
is providing a set of corresponding values. N (none), S (short), or L
(long). Click <Edit> to change.
Agg
Heading Text
Add Criteria
Criteria are used to limit the results of a query based on the values in a
field. For example, to limit the results to a particular DeptID, criteria
can be entered to return results only when the DeptID field = 10000.
Edit
Delete
11
C
A. HEADING SECTION
Field Description
No Heading
Text
RFT Short
RFT Long
Heading Text
Aggregate calculations will be performed on each row of data in the output results (see example).
12
Field Name
Field Description
None
Sum
Adds the values from each row and displays the total.
Count
(Minimum) Checks the value from each row and returns only those over
the threshold identified.
Max
(Maximum) Checks the value from each row and returns only those
under the threshold identified.
Average
Adds the values from each row and divides the result by the number
of rows.
C. TRANSLATE VALUE
Fields that have a translation table associated with them will have the option of choosing to use
the Short Value, Long Value, or no translation. Fields without a translate table will not have this
option under Edit.
Field Name
Field Description
None
Short
The short translation value is used. For example, for the Journal header
status, E would appear for fields with a value of Journal has errors.
Long
The long translation value is used. For example, for the Journal header
status, Journal Has Errors would appear in the field.
Current Date
Field
Expression
13
UserID
ANDE055
ANDE055
ANDE055
ANDE055
JAND021
JAND021
Date
08/15/2009
08/15/2009
08/20/2009
08/20/2009
09/15/2009
09/16/2009
Table B depicts three fields being included in the query output: Journal ID,
UserID, and Date. The count of journal entries based on unique combinations of
UserID and Date.
Count Journal ID
2
2
1
1
UserID
ANDE055
ANDE055
JAND021
JAND021
Date
08/15/2009
08/20/2009
09/15/2009
09/16/2009
Table C depicts two fields being included in the query output: the count based
on just unique UserIDs.
Count Journal ID UserID
4
ANDE055
2
JAND021
14
Field Name
Field Description
New Column
Number this column to change the order in which the columns display
in the results. Insert a 1 next to the desired first column, 2 next to
the second desired column, etc.
Column
The current order the columns will display. For example, in the screen
shot above, the first column is Business Unit, then Journal Class, and
then Journal Date.
Order By
Descending
New Order By
If the field is the first sort field, enter 1. Then the system will sort the
rows based on this field first. To designate the second sort field, enter
2, and so on.
15
Query Page
The Query page shows what records are being used in the query and what fields are available
for each record. Each record can be expanded to view all available fields. Fields that are checked
will appear in the query results.
Select fields to add to the query either by selecting their checkboxes or clicking <Check All
Fields>. <Uncheck All Fields> will not only remove fields from the query, but will remove any
and all associated criteria.
Key fields are shown in the query with a key symbol next to them.
16
Field Name
Field Description
a/z icon
Alias
The alias name that the system automatically assigns to the chosen
records. The first record selected will be assigned A, the second B,
etc. This helps identify the record used on the Fields page.
Hierarchy Join
Delete
Click to select all fields in the record. Once a field is selected, the
system automatically adds it to the query and it can be viewed on the
Fields page.
This button does not appear when the field names are hidden.
Fields
List of fields contained in the record. Select the checkbox to the left of
each field to add them to the query.
Add Criteria
Set criteria for the field. This is used to limit data returned even if the
field is not displayed. Prompts and expressions may also be created here.
Related Record Join Click the link to join two records based on a shared field (see C in
screen shot on previous page). The system will identify related tables
and will provide a shortcut to the link.
Expand All Records Click the plus sign icon to view all fields in the records (see A in screen
shot on previous page).
This button appears only when there is more than one record listed.
Collapse All Records Click the minus sign icon to hide all fields in the records (see B in
screen shot on previous page).
This button appears only when there is more than one record listed.
17
Expressions Page
In Query Manager, expressions can be used in three ways:
As comparison values in selection criteria.
As columns in the query output (new field).
To write SQL script.
An expression can be worked with as if it were a field in the query. It can be selected for output,
the column heading can be changed, or criteria can be run against it.
Expressions can also be calculations that are performed as part of a query. Use them when a
value must be calculated that the query does not provide by default (for example, to add the
values from two fields together or to calculate a percentage).
18
Field Name
Field Description
Expression Type
Length
Defaults to one digit. The length determines the length of the column
which must be increased to the appropriate length.
Aggregate
Expression Text
19
Prompts Page
Adding a prompt allows a query to be further refined when it is run. For example, suppose
a query needs to be run for different journal classes each time it is run. Before adding the
prompt, the query will retrieve all rows from the JRNL_HEADER and JRNL_LN tables
based on the criteria defined in the query. Adding a prompt to the query enables a range of class
values to be entered that will further limit the results based on the value provided at
the time the query is run.
When a query with a prompt is run, a Prompt page requests the required value. Enter the value
into the field. Prompts are case-sensitive. The query uses the entered value as the comparison
value for the criterion that included the prompt.
Field Name
Field Description
Field Name
Select the field from one of the records used in the query to be a
prompt by clicking the magnifying glass icon.
Type
Format
Specifies the field format. Over a dozen formats are available, including
name, phone, social security number, and zip code.
Length
21
Edit Type
Heading Type
Select a heading type for the prompt from the below values. This is the
verbiage that will appear next to the prompt when the query is run.
Text: The free text entered in the field.
RFT Short: The short name from the record definition.
RFT Long: The long name from the record definition.
Heading Text
Displays the label for the field where the comparison value is entered.
To change the text, select Text from the Heading Type drop-down
menu, and enter the new label in the Heading Text field.
Unique Prompt Name A default value that Query Manager generates for globalization. Only
base-language users can set this value to uniquely identify a query
prompt parameter.
Prompt Table
If the edit type is Prompt Table, a prompt table can be selected to use.
If the edit type is Translate Table, the value in the drop-down menu
determines the values used. Query Manager assumes that the specified
field has translate table values associated with it, and that the field is
identified as a Translate Table field in its record definition.
If the field being prompted has an associated prompt table (even if it is the Translate table), the
Edit Table drop-down menu shows the available options.
22
Criteria Page
Because databases store data in records, each individual piece of data can be identified by saying
what column (field) and row (transaction) it is in. When a query is created, the data to be
included are selected by specifying which columns and rows the system should retrieve.
If the query is run after selecting the fields, the system retrieves all the data in those columns; that
is, it retrieves the data from every row in the table or tables. This might be much more data than is
wanted or needed. To limit which rows of data are reviewed, add selection criteria to the query.
The selection criteria serve as a test that the system applies to each row of data in the tables
being queried. If a row matches the criteria, the system retrieves it; if a row does not match, the
system does not retrieve it.
Along with the Query and Fields pages, criteria (static, prompts, or expressions) can be added
using the Criteria tab. Any field that has criteria associated with it will appear on this page.
Other functions available through this page are:
Reviewing criteria
Adding criteria (static, prompts or expressions)
Grouping criteria
Reordering criteria
23
24
Field Name
Field Description
Add Criteria
Group Criteria
Reorder Criteria
Changes the order in which criteria are applied to the data. The order
that the criterion is applied can affect results.
Represents how criteria rows will be compared with each other. This
field is blank for the first criteria. The options are:
AND
AND NOT
OR
OR NOT
Expression1
Condition Type
Expression2
Edit
25
Add Criteria
Criteria is a specific combination of values associated with data elements that permits selection
of a subset of entries that meet required needs. Criteria can be added in the Query, Fields, or
Criteria tabs. The criteria consist of the following parts:
A. Expression 1 Type
B. Expression 1
C. Condition
D. Expression 2 Type
E. Expression 2
Example:
26
Field Name
Field Description
A. Choose
Expression 1 Type
B. Expression 1
Choose the record and the field name that will be used in the
selection process.
C. Condition Type
D. Choose
Expression 2 Type
Identifies the type of data expression 2 will be. The options available
are dependent on the condition selected.
Field
Expression
Constant
Prompt
Subquery
E. Expression 2
This identifies the values (constant, range, etc.) that will be used to
limit the query results. Lookup lists exist in some situations.
D
EXPRESSION 2
TYPE (Options)
Like/Not Like
SubQuery
Constant
Prompt
NO OPTIONS
In List
In Tree/Not In Tree
SubQuery
Tree Option
E
EXPRESSION 2
Field
1. Use Look up to select a field.
Expression
2. Use Look up to select expression.
3. Click <New Expression> to create an expression.
Constant
1. Enter a value.
Prompt
Select a prompt:
1. Click the magnifying glass and select prompt.
Add Prompt:
1. Click <Add Prompts>.
2. Click the magnifying glass next to the field button.
3. Select the field name.
4. Update the heading text.
5. Click <OK>.
Constant value
1. Enter a value.
Prompt
Select a prompt:
2. Click the magnifying glass and select prompt.
Add Prompt:
3. Click <Add Prompts>.
4. Click the magnifying glass next to the field button.
5. Select the field name.
6. Update the heading text.
7. Click <OK>.
Create a List:
1. Select Look up .
2. Select values:
Click <Add Value> (if Translate table
exists, options will appear) OR
Enter a value and click <Add Value> OR
Search for values.
3. Once List is complete, click <OK>.
Choose Tree Node:
1. Click <New Node> List.
2. Search for the appropriate tree (DeptID, Fund, or
Account).
3. Select the tree with the appropriate effective date.
4. Drill to the appropriate Node/Nodes and select.
5. Click <OK> to approve node selection.
6. Click <OK> to save criteria.
Training Services, Organizational Effectiveness | 4-26-10
27
between/
not between
The value in the selected record field falls between/not between two
comparison values. The range is inclusive.
equal to/not equal to The value in the selected record field is equal to/not equal to the
comparison value.
exists/does not exist This operator is different from the others in that it does not compare
a record field to the comparison value. The comparison value is a
subquery. If the subquery returns any data, the query returns the
corresponding row.
28
greater than
The value in the record field is greater than the comparison value.
The value in the record field is less than or equal to the comparison value.
in list/not in list
The value in the selected record field matches one of the comparison
values in a list/not in a list.
in tree/not in tree
The value in the selected record field is a tree node/is not a tree node.
The selected record field does not have a value in it. No comparison
value for this operator. Key fields, required fields, character fields, and
numeric fields do not allow null values.
less than
The value in the record field is less than the comparison value.
like/not like
_ matches any single character. For example, _ones matches any fivecharacter string ending with ones, such as Jones or Cones.
29
Having Page
This feature would be used in situations where a calculation (aggregate) function is used and
additional criteria to limit the results on the same field is needed. For example, to calculate the
total salary of each department and then only select those departments whose salary is greater
than $100,000.00.
The system first aggregates the data and then performs the selection based on the HAVING
criteria.
When the add-criteria icon from the Fields or Query tab is selected for an aggregate field, new
criteria is added to the Having tab instead of the Criteria tab. Add selection criteria using the
Having tab in the same way that selection criteria is added using the Criteria tab.
Having criteria are separated from simple criteria. They are accessed as follows:
Having criteria are accessed using either the AddHavingCriteria
QuerySelect method or HavingCriteria QuerySelect property.
Simple criteria are accessed using either the AddCriteria
QuerySelect method or the Criteria QuerySelect property.
30
Viewing SQL
The View SQL screen shows the query in sentence-like structure. This information cannot be
edited from this screen.
SELECT
FROM
WHERE
ORDER
SELECT
FROM
WHERE
Criteria: What limitations are being placed on the data being retrieved
(criteria)?
ORDER
HAVING
GROUP BY
31
Query Options
Field Name
Field Description
Save As
New Query
Preferences
Properties
32
New Union
Link two queries.
33
Running Queries
When a query is run, the system looks at all the rows in the record(s) and returns only those
that meet the requirements specified in a queryor all rows if no criteria are specified (this is
called a list query since the results are a list of all the data in the record). To run a query, click
the Run tab. The query then executes and displays the results. While the query runs, run-time
prompts that require user input may appear if they were built into the criteria.
Remember the query results (data set) are static. If the data in the database changes five
minutes after the query is run, the query results will remain the same, unless the query is rerun.
Depending on the data in the system or the information supplied in the limits or run-time
prompts, the data set may be empty. Empty data sets may also be a result of security restrictions.
If access to view data within the query tool is not allowed, the data set may display as empty
even if data is present. This is referred to a null query set.
When data meet the requirements of the query, they are included in the data set. The upper
right-hand corner of the data set will display the number of records returned. Unlike other
PeopleSoft search results, the query output can display more than 300 rows as a result of a
fetch on the database.
34
Link Name
Link Description
View All
Rerun Query
35
Locating a Record
Query Manager enables queries with multiple-record joins. Joins retrieve data from more than
one record, presenting the data as if it came from one record. PeopleSoft Query links tables
based on common fields, and links rows on tables by common fields in the shared columns.
BASIC SEARCH
Field Description
Access Group Name A grouping of records used by a particular module. Selecting a particular
access tree returns every query related to that particular module.
Contains Field Name Retrieves all queries that use the field identified.
36
Description
Record Name
The advanced search allows greater search flexibility. Each of the four basic-search options
are available, but in addition to searching by begins with, advanced search allows searches
by other conditions (>, >=, =, < ,<=, contains, exists, in, between, and not =). The advanced
search also allows searching on multiple criteria at the same time.
Search Results
37
Show Fields
Before adding a record, it is a best practice to review the fields that are contained within the
record to determine if the fields needed are contained. It is also important to determine which
fields are key fields.
Key fields are the field(s) that make the record unique. They are shown in the query with a key
symbol next to them. When viewing the Show Fields page of the record, they are identified with
a Y under Key Field. Typically (but not always), records are joined on key fields.
When joining records, the records each include at least one field that contains comparable data.
For example, if a vendor record and a voucher record need to be joined, each record must contain
a common element such as a Vendor ID field to serve as a field on which the data can be matched.
When records contain the same fields, the system will automatically identify them as
potential joins.
Records can be joined on multiple fields so long as the fields have the potential to supply
matching information.
38
Joins
Once a record is identified and selected, a prompt will display requesting that the type of join
(standard or left outer) and which record it is to be joined to will display.
Standard joins tell a query that rows from one of the joined tables correspond to rows in the
other table, on the basis of the data in the joined fields. When a query with an inner join is run,
only those rows where a common value exists in both of the joined tables will be included in
the query operations.
Use an inner join to return only those rows from both tables in the join that match on the
joining field.
LEFT OUTER JOIN
In a left outer join, the query includes all the rows from the first table in the SQL statement
FROM clause, and only those rows from the other table where the joining field contains values
common to both tables.
Because some of the rows on one side of an outer join will not have corresponding rows from
the other table, some of the fields returned in the query results from that other table will be
empty when the rows do not correspond.
Use an outer join to have all the rows from one of the tables in the join be included in the
results, and to have the query return only those rows from the other table that match the first
table on the joining field.
39
Joins (cont.)
Example of data contained in two records and how the results differ based on the join.
RECORD 1
Bus Unit
UMN01
UMN01
UMN01
UMN01
RECORD 2
DeptID
10000
10050
10100
15114
Employee Name
Smith, Steve
Jones, John
Adams, Alan
Williams, Walter
Bus Unit
UMN01
UMN01
UMN01
DeptID
10050
10100
15114
Date
07/31/05
06/30/05
07/31/05
Amount
1000.00
800.00
300.00
STANDARD JOIN
DeptID
10050
10100
15114
Employee Name
Jones, John
Adams, Alan
Williams, Walter
Amount
1000.00
800.00
300.00
DeptID
10000
10050
10100
15114
Employee Name
Smith, Steve
Jones, John
Adams, Alan
Williams, Walter
Amount
1000.00
800.00
300.00
Caution
Table joins that are set up incorrectly could result in misleading queries, broken queries,
or poor performance.
A good understanding of the fields contained in the tables, which fields are key fields,
and the results desired is essential in joining tables correctly.
40
Joins (cont.)
AUTO JOIN CRITERIA
When a join and record are selected, the auto join criteria will appear. The system will locate
field names that are the same in each table and will join the tables on each field selected.
Deselect fields that should not be joined.
For example: The Ledger field in the JRNL_HEADER table is not the same Ledger field as in
the JRNL_LN table. Therefore, it should be unchecked.
HIERARCHY JOIN
Once one table is selected, a hierarchy join can be created by clicking <Hierarchy Join>. This
will bring up all the child records associated with the original record (if any exist).
41
In many situations, existing queries can be used as a basis and then modified to fit the needs of
the user. In others, a completely new query may be required or be beneficial. Record names are
consistent and allow users to see available records by module (Procurement, Accounts Payable,
Asset Management, etc.).
When creating a query, the first step is to develop a plan of action.
Identify the Following
Goal of query
Records
Result
42
Fields
Sort order
Field order
Criteria
Prompts
Expressions
43
44
Field Name
Field Description
Query Name
Name the query in such a way as it will make sense to anyone using it.
Best practice would be to develop a naming convention.
Description
Folder
45
46
Query Type
Leave as default.
Owner
Private will be the only option. Users can only create private queries.
Query Definition
This field is vital to understand what rows of data the query will
return, especially when sharing queries with other users.
Run the query and then enter the record (table name).
The results will show all the fields that are contained within the record, what type of information
is maintained (numerical, character, date, currency, etc.), and additional information.
Some of the descriptions are default PeopleSoft descriptions; others have been updated to
clarify the use of the field at the University.
47
48
Field Name
Field Description
Record
Record name.
Field_Name
Key Type
Primary key fields are identified by the word key in this field.
Field Type
Field Length
Edit
Edit Table
Description
If the query already exists for the user, a different message will appear:
49
OR
Enter a folder name to move to: Enter the name for a new
folder to which to move the queries. These folders are unique
to each user.
6. Click <OK>.
50
Renaming Queries
To change the name of a private query, search for the query and select the corresponding
checkbox. Then select Rename Selected from the Action drop-down menu, and enter the
new name of the query on the Rename Queries page.
51
Scheduling
In many situations, it is helpful to schedule the queries to run overnight.
The scheduling option can also be used to help organize and distribute queries. Some of the
activities that can be performed thorough the scheduling options are:
Setup recurring queries.
Select the format output (PDF, web, html, txt).
Select the location of the results.
Distribute the query results to select user or users.
The benefits to using the scheduling features are many. If there are monthly queries that are
needed, they can be scheduled to run overnight or early in the morning reducing the manual
process of running the report.
A process request enables you to submit a job or process to run. The Schedule Query page
submits a process request and brings up the Process Request page, which enables you to
specify such variables as where to run the process and in what format to generate the output
based on a run control ID.
52
When defining a schedule for queries, a run control will need to be entered. Run controls are
determined by the individual and by the query, and can be useful when similar schedules are
used. That way, whenever the group needs to be forwarded the same report, the run control can
be used.
By defining a run control, users can go directly into Schedule Query to run a query. (See
Schedule Query section of this manual.)
Click <Add>.
Enter Description. This description will appear in the Report
Manager and be helpful to identify the report (except if TXT
is selected as the format, in which case the Report Manager
description defaults to PSQUERY).
Click <OK>
53
The Process Scheduler Request page enables you to set the server, run date and time, how
often the process runs (the recurrence of the process), output type, and format.
To select a process request:
1. Open the Process Scheduler Request page. (Select Reporting
Tools > Query> Schedule Query. Select a run control ID and
click <Run>.)
2. Complete the fields on this page.
54
Server Name
Select the name of the server on which you want the process to run.
Recurrence
Field Name
Field description.
Time Zone
Select the time zone in which the process will run. For example, you
might be in Eastern Standard Time (EST) and schedule a process to
run in Pacific Standard Time (PST).
Run Date
Run Time
Reset to Current
Date/Time
Click to reset the run date and time to the present date and time.
Select
Identifies a process or job. Jobs are listed as links. Click the link to
display the Job Detail page, which shows all of the individual processes
and jobs that are associated with the selected main job.
Type
File
Writes the output to the file that you indicate in the Output
Destination field.
Printer
Sends the output to a printer. You can enter a custom printer location
in the Output Destination field if you have the appropriate security
access. If the Output Destination field is left blank, the printer that
is defined on the Process Profile Permissions page is used. If that
printer is undefined, the default printer that is defined for the process
scheduler is used.
E-mail
Sends the output through an email. To distribute a report to an email
list, enter the appropriate information on the Distribution Detail
page by clicking <Distribution>. By default, the output is sent through
email to the person running the process. This option is available for
Structured Query Reports (SQR), PS/nVision, and Crystal reports.
Web
Sends all output of the process to the report repository, including log
and trace files. The format of the report is specified by the format list.
Window
Sends the output to a new browser window.
Format
55
Note: An output format that is selected for a job at the main job
level carries through to the job items. The format that is selected for
individual processes or jobs that are attached to a job overrides the
format that you for the parent job.
Note: To get text-wrapping support for very long text fields, use
HTML format.
Distribution
Status
The status of the process now appears in the new browser window
before the results are displayed. The different statuses are Queued,
Initiated, Processing, Success, Error, or Warning. All output for the
process is also sent to the report repository, including log and trace
files. The format of the report is specified by the format list.
56
Process Monitor
The Process Monitor can be used to view the status of your process requests.
The Process Monitor can be accessed by clicking the Process Monitor link on the Schedule
Query page or by navigating to: PeopleTools > Process Scheduler > Process Monitor.
Process Monitor consists of two pages: the Process List page and the Server List page. The
Process List page enables you to monitor the process requests that you have submitted.
Processes listed can be filtered (for example, process type and run status) in order to view only
selected process requests. Click <Details> to view details that are associated with particular
process requests.
The Server List page enables you to monitor the PeopleSoft Process Scheduler server agents
within your system.
User ID
Type
Last
Refresh
Server
Name
Instance
Run Status
Distribution Status
Displays the distribution status for each individual job and process.
Valid statuses are N/A, None, Generated (OS390), Not Posted,
Posting, and Posted.
Save On Refresh
Select to save filter criteria changes when you click the <Refresh> button.
Instance
Displays the process instance, that is, the order in which the process
appears in the queue. This number is automatically generated.
Seq (sequence)
User
Details
57
58
59