Skip to main content
Solved

SQL Check Employee Status for Date

  • Feb 8, 2025 5:28 PM UTC
  • 2 replies
  • 87 views

Forum|alt.badge.img+4

How can I check an employee’s status for a specific date in a PL/SQL script? Is there an API call that will provide that information? I’m struggling to find it. I can find the call to see their current status, but what about a previous employment period?

Best answer by Abdul

Hi ​@emiller3061,

You can check Employees’ status for a specific date with below select statement.

SELECT EMPLOYEE_STATUS_DETAILS_API.GET_STATUS('&Company','&Emp_no',TO_DATE('&Valid_From','DD/MM/YYYY')) STATUS  FROM DUAL

 

Regards

Abdul Rehman

View original

2 replies

Abdul
Superhero (Partner)
Forum|alt.badge.img+20
  • Superhero (Partner)
  • Answer
  • Feb 9, 2025 9:26 AM UTC

Hi ​@emiller3061,

You can check Employees’ status for a specific date with below select statement.

SELECT EMPLOYEE_STATUS_DETAILS_API.GET_STATUS('&Company','&Emp_no',TO_DATE('&Valid_From','DD/MM/YYYY')) STATUS  FROM DUAL

 

Regards

Abdul Rehman


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • Feb 9, 2025 8:37 PM UTC

Thank you, ​@Abdul!