PS Query Lists

From TekiWiki

Jump to: navigation, search

This whole wiki has now moved to http://www.springboardsolutions.com/wiki

Go to this page PS Query Lists

 
Line 1: Line 1:
-
PS Query has a way of comparing a list of values in the criteria to a particular column (or expression). You have to add each value individually - this is a bit of fun for a handful of values, but when the number of values in the list hit serious double figures, it becomes a bit tedious.
+
[[PeopleSoft Query]] has a way of comparing a list of values in the criteria to a particular column (or expression). You have to add each value individually - this is a bit of fun for a handful of values, but when the number of values in the list hit serious double figures, it becomes a bit tedious.
The list of values makes use of the "in" operator in SQL. If we already have the list in an email or spreadsheet, we can edit the list into the SQL format without having to rete the actual values, but then we need to get it into PS Query:
The list of values makes use of the "in" operator in SQL. If we already have the list in an email or spreadsheet, we can edit the list into the SQL format without having to rete the actual values, but then we need to get it into PS Query:
Line 9: Line 9:
3: As an example, to make a list of Departments containing Sales, Marketing, Operations put the following into the expression list:
3: As an example, to make a list of Departments containing Sales, Marketing, Operations put the following into the expression list:
<pre>
<pre>
-
A.DEPTID in ('SALES','MARKETING','OPERATIONS') and 'a'=
+
A.DEPTID in ('SALES','MARKETING','OPERATIONS') and 'a'
</pre>
</pre>
4: Click OK and save the expression and return to your new criterion.
4: Click OK and save the expression and return to your new criterion.

Latest revision as of 18:01, 19 March 2015

Personal tools