dgoulston
Hasn't Got A Clue
- Local time
- Today, 20:08
- Joined
- Jun 10, 2002
- Messages
- 403
i have a field on my db, called "Sessiontime" which is a numerical field in seconds. i need to get the averages for example sessiontime<10, sessiontime>10 And <30, sessiontime>30 And <60 etc..
and find the average of them ranges over the total time eg...
SELECT Sum(AcctSessionTime) AS SumOfAcctSessionTime
FROM mytable
WHERE (((AcctSessionTime)<10));
but im having to do them all in separate querys eg. the one above is just for <10 and i would like to do them all in 1 query.
is this possible? please help.
if you need any more information before you can help i would be glad to provide it.
thankyou in advance
Darren Goulston
and find the average of them ranges over the total time eg...
SELECT Sum(AcctSessionTime) AS SumOfAcctSessionTime
FROM mytable
WHERE (((AcctSessionTime)<10));
but im having to do them all in separate querys eg. the one above is just for <10 and i would like to do them all in 1 query.
is this possible? please help.
if you need any more information before you can help i would be glad to provide it.
thankyou in advance
Darren Goulston