Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

List Employees without ACH

List Employees without ACH

List Employees without ACH

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.


RE: List Employees without ACH

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
                                                                                       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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close