Hi @Devraj Mukherjee ,
Agree with YoussefSaad, Configuration Manager CMPivot tool allows us to quickly assess the state of devices. When we run a query against a device collection, the CMPivot shall run a query in real-time on all currently connected (online) devices in the selected collection.
Besides, we could use SQL script to query that the date the patch was last installed on the device, and then check again for devices that have not had patches installed in the last 90 days. Here is the article we could refer to:
https://www.attosol.com/sccm-custom-sql-query-for-patch-compliance/
Note: This is non-official Microsoft article just for your reference.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.