Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Employees without ACH

Status
Not open for further replies.

NOLA

Technical User
Apr 14, 2003
18
US
Trying to extract employees that are not enrolled in ACH and not successful.

Using PS_AL_DIR_DEP and PS_AL_DIR_DEP_DATA tables and selection criteria where dedcd is null.

MAX(DISTINCT NVL("PS_AL_DIR_DEP_DATA"."DEDCD",'NULL' ) )
 
This could be an example of the “everyone that is not here raise your hand” query. One way to deal with this type of query is to have Selection Criteria that excludes the people “that are here.”

For example if you know that EMPLIDs 100,200 and 300 HAVE something and you just want the people that DON’T have it you could do a Selection like this.

Data Field “JOB”.”EMPLID” Is Not In List of Values 100,200,300

The problem you have is you need to create and maintain the list by hand.

If you modify the Selection and use a query in it the maint is automatic.

Data Field “JOB”.”EMPLID” Is Not In List Formula (SELECT
“IA_JOB”.”EMPLID”
FROM …….)

The trick is creating a query that returns the people you want to EXCLUDE. You create this query in ReportSmith and copy and paste the SQL into your formula.


Specializing in ReportSmith Training and Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top