Most Frequent Logon, Asset Owner, Primary User
This can be used to get the most frequent logon account in the last 60 days. -- First query: Get the most frequent logon user for each AssetIDWITH LogonCountsAS (SELECT AssetID,username,COUNT(*) AS logon_count,ROW_NUMBER() OVER (PARTITION BY AssetID ...