Quote:
Originally posted by Tinkster
Not tested, but something along the lines of:
SELECT avg( a.timestamp - b.timestamp)
FROM cocv_2004 AS a
JOIN cc_encodersee AS b ON a.db_user = b.db_user
That's the only possible criteria I can think of
Cheers,
Tink
|
THANKS again for your reply.
i need your help again.
letsay i have this content on my table cc_encodersee:
--id--|----cc_id-------|----db_user----|--------- timestamp
------|-----------------|------------------|---------------------------------------
--3---|----91000-----|----gdilao-------|-- 2004-02-06 17:52:30.072632
--4---|----91000-----|----gdilao-------|-- 2004-20-06 19:00:08.420871
--5---|----91000-----|----gdilao-------|-- 2004-02-09 11:18:20.384175
--6---|----91000-----|----gdilao-------|-- 2004-02-09 11:31:54.352862
--7---|----91000-----|----gdilao-------|-- 2004-02-09 11:55:31.334232
--8---|----91000-----|----gdilao-------|-- 2004-02-09 12:07:32.137286
:
:
--25---|----91000-----|----gdilao-------|-- 2004-02-09 19:26:08.883724
can i select with the timestamp with a specific date given from a query to compute for an average
from table row 5 upto row 25 was 2004/02/09 of date?
at the back of my head i have a query like this but i know its not right.:
SELECT AVG(timestamp) FROM cc_encodersee WHERE timestamp = '2004-02-09' and db_user = 'gdilao';
just giving you an idea what i want to achieve. thanks again.