Skip to main content
Solved

SQL Check Employee Status for Date

  • February 8, 2025
  • 2 replies
  • 42 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
Did this topic help you find an answer to your question?

2 replies

Abdul
Superhero (Partner)
Forum|alt.badge.img+12
  • Superhero (Partner)
  • 236 replies
  • Answer
  • February 9, 2025

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)
  • 9 replies
  • February 9, 2025

Thank you, ​@Abdul!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings