I have a table in SQL Server consisting of two columns that track how many users are logged into a system at a particular interval. The first column is Time15, which is the time rounded to the nearest 15 minute interval (datetime). The second column is UserCount, which is the number of users logged into the system during that 15 minute interval.
I need a query that will show me the peak number of users logged in for each day. So if at 1 PM on 1/1/09 the system reached a peak of 100 users, I need output that looks like:
1/1/09 - 100
1/2/09 - 94
1/3/09 - 98
etc ...
Any idea what T-SQL is going to accomplish this? Thanks!