query normal length users day


a chairman uses cave phone churned times per day, length calls vary. i am tracking length calls table:



calls [callid, memberid, starttime, duration]


i need query relapse normal length users per day. per means, user used phone 3 times, initial 5 minutes, second 10 mins final 7 minutes, calculation is: 5 + 10 + 7 / 3 = ...



note:




  1. people don't phone everyday, have latest day's normal per chairman altogether normal duration.


  2. we don't wish count anyone twice average, wholly 1 quarrel per user calculating normal daily duration.




some clarifications...



i need altogether per average, formed per-user per-day average, controlling users latest days numbers (since wholly counting given user once query), meant controlling opposite days avg. given competence phone any same even.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?