Compliance SQL Pack

Oracle HCM Compliance SQL β€” Production-Ready

12 validated Oracle Fusion HCM SQL queries for EEO-1 headcount, ACA FTE calculation, FLSA overtime eligibility, and SOX audit trails. Written for real environments, not demos.

Get the Compliance Pack ($499) →

One-time purchase. Delivered within 24 hours. 30-day guarantee.

πŸ“‹

EEO-1 reporting in Oracle HCM is underdocumented

The right tables, race/ethnicity codes, and job category mappings take days to find without a guide.

βš–οΈ

ACA FTE thresholds need exact calculation

Getting variable-hour employee status wrong creates IRS exposure. The PAY_ query logic is non-obvious.

πŸ”’

SOX auditors want evidence trails

Producing role change history, segregation of duties conflicts, and payroll approvals from HCM tables under time pressure.

What's Included

12 Compliance Queries, Fully Documented

Every query includes: table references, join conditions, date-effective filter pattern, and inline comments explaining each clause. Ready to run in BI Publisher or direct SQL access.

1

EEO-1 Category 1 β€” Headcount by Race, Gender, and Job Category EEO-1

Maps PER_ALL_PEOPLE_F ethnicity codes to EEOC categories. Joins to per_persons_legislative_f for US-specific data. Handles multi-ethnicity respondents per EEOC 2007 instructions.

2

EEO-1 Job Category to Oracle Job Code Mapping EEO-1

Cross-reference Oracle job codes to EEO-1 job categories (1.1 Executive, 1.2 Senior Professional, 2 Professional… 9 Laborers). Includes unmapped job audit.

3

EEO-1 Pay Band Report (Component 2 Format) EEO-1

W-2 earnings bucketed into the 12 EEOC pay bands by job category and demographic. Joins PAY_PAYROLL_ACTIONS and element classification for W-2 wage elements only.

4

ACA Full-Time Employee Count (Section 4980H) ACA

Counts FTEs using the monthly measurement method. Includes part-time FTE equivalents (hours Γ· 120). Aggregates to employer-level for ALEs and controlled group determinations.

5

ACA Variable-Hour Employee Status Audit ACA

Identifies employees crossing the 30-hour ACA threshold mid-measurement period. Pulls from PAY_RUN_RESULT_VALUES and PER_ALL_ASSIGNMENTS_M with averaging logic.

6

ACA 1094/1095-C Eligibility Indicator Audit ACA

Validates offer-of-coverage code logic (1A–1J lines 14–16) against enrollment and benefit election data in BEN_* tables. Flags indicator mismatches before filing.

7

FLSA Overtime Eligibility Classification Audit FLSA

Identifies workers classified as exempt vs non-exempt. Cross-checks salary against DOL threshold ($684/week as of 2024). Flags potential misclassifications by job title and salary level.

8

FLSA Overtime Hours and Pay Calculation FLSA

Pulls hours worked from HWM_TIME_ENTRIES vs element results in PAY_RUN_RESULTS. Calculates regular rate of pay including non-discretionary bonuses for accurate 1.5x overtime base.

9

SOX Segregation of Duties Conflict Report SOX

Identifies users with conflicting HCM role combinations (e.g., both Payroll Entry and Payroll Approval). Joins HCM security tables to produce conflict matrix by user and conflict type.

10

SOX Privileged Access Review (PAR) Report SOX

Lists all users with HCM super-user or sensitive data access roles. Includes last login date, role assignment date, and approver. Point-in-time snapshot for audit evidence.

11

SOX Payroll Variance Control (Period-over-Period) SOX

Flags payroll runs where element totals vary more than 5% from prior period. Excludes approved variance reasons. Produces the management review evidence auditors expect.

12

Workforce Change Audit Trail (Hire, Term, Transfer, Salary) SOX

Comprehensive action history from PER_ACTION_OCCURRENCES and PER_ASSIGNMENT_SUPERVISORS_F. Shows who changed what, when, and which supervisor approved. Standard SOX evidence package.

Sample Query

EEO-1 Headcount β€” Actual SQL You Get

Query 1 β€” EEO-1 Headcount by Race, Gender, Job Category (Oracle Fusion HCM)
-- EEO-1 Category 1 Headcount
-- Reports as of: snapshot date (typically Oct 15 or Dec 31)
-- Tables: PER_ALL_PEOPLE_F, PER_ALL_ASSIGNMENTS_M,
--         PER_PERSONS_LEGISLATIVE_F, PER_JOBS_F, HR_LOCATIONS_ALL
SELECT
  -- EEO-1 job category from Oracle job code mapping
  jm.eeo1_category,
  -- EEOC race/ethnicity codes mapped to standard labels
  CASE pl.ETHNIC_GROUP
    WHEN '2' THEN 'Hispanic or Latino'
    WHEN '1' THEN 'White (Not Hispanic)'
    WHEN '4' THEN 'Black or African American'
    WHEN '7' THEN 'Asian'
    WHEN '5' THEN 'American Indian or Alaska Native'
    WHEN '3' THEN 'Native Hawaiian or Other Pacific Islander'
    WHEN '6' THEN 'Two or More Races'
    ELSE        'Not Disclosed'
  END                AS race_ethnicity,
  p.SEX             AS gender,
  COUNT(*)          AS headcount
FROM
  PER_ALL_PEOPLE_F         p
  JOIN PER_ALL_ASSIGNMENTS_M  a
    ON  a.PERSON_ID     = p.PERSON_ID
    AND a.PRIMARY_FLAG  = 'Y'
    AND a.ASSIGNMENT_TYPE IN ('E','C')
    AND :snapshot_date BETWEEN
          a.EFFECTIVE_START_DATE AND a.EFFECTIVE_END_DATE
  JOIN PER_PERSONS_LEGISLATIVE_F pl
    ON  pl.PERSON_ID    = p.PERSON_ID
    AND pl.LEGISLATION_CODE = 'US'
    AND :snapshot_date BETWEEN
          pl.EFFECTIVE_START_DATE AND pl.EFFECTIVE_END_DATE
  JOIN eeo1_job_category_map  jm  -- supplied mapping table
    ON  jm.oracle_job_code  = a.JOB_CODE
WHERE
  :snapshot_date BETWEEN
    p.EFFECTIVE_START_DATE AND p.EFFECTIVE_END_DATE
  AND a.ASSIGNMENT_STATUS_TYPE = 'ACTIVE_PROCESS'
GROUP BY
  jm.eeo1_category,
  pl.ETHNIC_GROUP,
  p.SEX
ORDER BY
  jm.eeo1_category,
  race_ethnicity,
  gender

Each query in the pack includes the full version with all join conditions, date-effective filters, gotcha comments, and notes on which BI Publisher data source type to use.

Package Contents

Everything in One Download

βœ“

12 production SQL queries β€” EEO-1 (3), ACA (3), FLSA (2), SOX (4)

βœ“

EEO-1 job category mapping table β€” Oracle job codes β†’ EEOC categories template

βœ“

ACA measurement period cheat sheet β€” monthly vs lookback method explained

βœ“

FLSA salary threshold table β€” current DOL thresholds by exemption type

βœ“

BI Publisher data model setup notes β€” parameter binding, multi-dataset joins

βœ“

Inline SQL comments β€” every clause explained for customization

βœ“

Oracle Fusion 24B-compatible β€” tested against PER_ALL_ASSIGNMENTS_M patterns

βœ“

30-day email support β€” we'll help adapt any query to your environment

4–8h
Hours saved per compliance report vs building from scratch
24B
Tested against Oracle Fusion HCM 24B (latest release)
$499
vs $800–$1,200 to hire a consultant for the same queries
Pricing

Get the Compliance SQL Pack


One-time purchase
$499
12 queries. All compliance frameworks. Lifetime access. No subscription.

We'll send payment link + download within 24 hours.
30-day money-back guarantee β€” if the queries don't work in your Oracle environment, full refund.
FAQ

Common Questions

What Oracle Fusion version are these queries for?

All queries are written for Oracle Fusion Cloud HCM Release 13 (current cloud version) and tested through Oracle 24B. The assignment queries use the 24B-recommended PER_ALL_ASSIGNMENTS_M pattern instead of the deprecated _F table.

Do I need direct database access, or do these work in BI Publisher?

These are physical SQL queries β€” they require either BI Publisher with a direct database connection, a custom report with SQL data source, or BIP access through Oracle Fusion's built-in analytics layer. They will not run in OTBI (Logical SQL). Each query includes BI Publisher setup notes.

Can I use these for the actual EEO-1 submission?

The queries produce the correct headcount breakdowns. Your legal or HR team should validate the job category mappings for your specific Oracle job codes before filing. We include a mapping template to simplify that validation step.

What if a query doesn't run in our environment?

Email us with your Oracle version and the error. We include 30 days of email support to help adapt the query to your environment. If we can't get it working, full refund β€” no questions asked.

Is this different from the OTBI Template Pack?

Yes. The OTBI Template Pack ($97) contains Logical SQL queries for OTBI/Oracle Analytics. This Compliance SQL Pack contains physical SQL for BI Publisher and direct database access β€” different technology, different use cases. Most compliance reporting requires physical SQL because OTBI subject areas don't expose the raw legislative data needed for EEO-1 and ACA calculations.