I don’t have scripts right now but maybe I’ll put my problem into words and examples of what I wanted to do.
I want to count how many user is login in every hour. This is to measure system utilization. The user’s come in and log out anytime of the day.
Table looks like this
The query I wanted to build is to count how many UserID is currently log-in by hour from 8am to 5pm.
Thanks for your help and I will definitely appreciate all your inputs
I want to count how many user is login in every hour. This is to measure system utilization. The user’s come in and log out anytime of the day.
Table looks like this
Code:
[B]Date UserID Login LogOut[/B] 2/7/2011 Cat 8:00 9:00 2/7/2011 Dog 9:12 10:30 2/7/2011 Cat 10:01 15:00 2/7/2011 Dog 10:45 17:00 2/7/2011 Cat 15:30 17:00
Code:
Select count(userid), login, date Where ---I don’t know I’m black out---------- Group by login, date
Comment