Comprehensive list of all employees with contact information, job details, and department assignments
SELECT
e.EMPLOYEE_ID,
e.FIRST_NAME,
e.LAST_NAME,
e.EMAIL,
e.PHONE_NUMBER,
e.HIRE_DATE,
j.JOB_TITLE,
d.DEPARTMENT_NAME,
e.MANAGER_ID,
e.SALARY,
e.COMMISSION_PCT,
l.CITY,
l.STATE_PROVINCE,
l.COUNTRY_ID
FROM EMPLOYEES e
JOIN JOBS j ON e.JOB_ID = j.JOB_ID
JOIN DEPARTMENTS d ON e.DEPARTMENT_ID = d.DEPARTMENT_ID
LEFT JOIN LOCATIONS l ON d.LOCATION_ID = l.LOCATION_ID
WHERE e.ACTIVE_FLAG = 'Y'
AND (:department_id IS NULL OR e.DEPARTMENT_ID = :department_id)
AND (:hire_date_from IS NULL OR e.HIRE_DATE >= :hire_date_from)
AND (:hire_date_to IS NULL OR e.HIRE_DATE <= :hire_date_to)
ORDER BY e.LAST_NAME, e.FIRST_NAME
Unique employee identifier
Employee first name
Employee last name
Employee email address
Employee phone number
Employee hire date
Current job title
Department name
Manager employee ID
Employee salary
Work location city
Work location state/province
Filter by department ID
Hire date range start
Hire date range end
HCM - Human Capital Management
Core HR
1001
1/20/2024, 2:45:00 PM
Monthly payroll summary by employee
Employee performance metrics
Financial trial balance