and more in a single search tool across platforms. Read the announcement here. |
04/17/2023 05:17 AM
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
04/17/2023 06:51 AM
try if any of the below helps:
TERMDATE
UPDATEDATE
SAVUPDATEDATE
LASTSYNCDATE
04/18/2023 08:23 AM
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
04/18/2023 09:12 AM
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;