I need help with a report that shows sleeptime for systems. Something like this:
SELECT
Name AS ‘Computer Name’,
LastWakeTime,
LastSleepTime,
DATEDIFF(MINUTE, LastWakeTime,
LastSleepTime) AS ‘Minutes Asleep’
FROM
Computers
WHERE
LastSleepTime IS NOT NULL AND
LastWakeTime IS NOT NULL
ORDER BY
‘Minutes Asleep’ DESC;
Suggestions are much appreciated.