and more in a single search tool across platforms. Read the announcement here. |
06/06/2023 08:57 AM
Hi Team,
I am trying to create a analytics for those accounts who are inactive from 90 days using sql query however unable to create sql query for the same.
Kindly help with SQL query for accounts who are inactive from last 90 days so that we can delete those accounts.
Thanks
06/06/2023 03:52 PM
Select name , endpointkey from accounts where lastlogondate > (DATE_SUB(NOW(), INTERVAL 90 DAY))
06/06/2023 11:40 PM
I am preparing the analytics to delete the user who are inactive from 90 days from AD and for that it requires SQL query which will fetch the data from below tables using join.
accounts
users
useraccount
endpoints
can you help me with this query. as results from above query are not satisfactory.