There is no easy way to do this with a SQL report, as what is stored in the database are just uptime events: reboots, shutdowns... The Summary tab of computer webpages uses a special procedure to convert this information into a calendar. We posted a sample report that attempts to summarize the uptime calendar
here, but this report only works in SQL Server, may be slow to run and is limited in days.