AVG
का उपयोग करें समारोह
SELECT avg(cast(lastprocesseddate as date)-cast(importeddate as date))
FROM feedqueueitems
WHERE eventid = 2213283
ORDER BY written DESC;
इम्पोर्टेडडेट और लास्टप्रोसेस्डडेट के लिए +1 टाइमज़ोन वाले डेटाबेस पर यूटीसी है
SELECT avg(cast(cast(lastprocesseddate as timestamp with time zone) at time zone '+01:00' as date)-cast(importeddate as date))
FROM feedqueueitems
WHERE eventid = 2213283
ORDER BY written DESC;