Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Query to get all the terminated employees

Nidhins27
Regular Contributor
Regular Contributor

Hi,

Is there anyway to get the no. of employees terminated on a particular date or today if end date of the user in the user's table is empty.

Thanks

Nidhi Sharma

3 REPLIES 3

nimitdave
Saviynt Employee
Saviynt Employee

try if any of the below helps:

TERMDATE

UPDATEDATE

SAVUPDATEDATE

LASTSYNCDATE

dgandhi
All-Star
All-Star

Hi @Nidhins27 

Is there any property where you are storing/updating the term date or end date of the user?

If yes, then based on that property the query can be prepared.

Thanks

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

rushikeshvartak
All-Star
All-Star

Last 30 days 

SELECT USERNAME, FIRSTNAME, LASTNAME, EMAIL, OWNER, CASE STATUSKEY WHEN '0' THEN 'INACTIVE' WHEN '1' THEN 'ACTIVE' END AS USERSTATUS, UPDATEDATE as Updateddate, DEPARTMENTname as 'DEPARTMENT' FROM USERS WHERE UPDATEDATE > DATE_SUB(CURDATE(), INTERVAL 30 DAY) AND STATUSKEY = 0;


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.