Question: I am using Postgres. One of the latest versions. Here is my code: select round(stddev(time_),2) as stddev_time_of_logs, imei,mob_date,hour_of_day from hourly_data group by imei,mob_date, hour_of_day It

I am using Postgres. One of the latest versions. Here is my code: select round(stddev(time_),2) as stddev_time_of_logs, imei,mob_date,hour_of_day from hourly_data group by imei,mob_date,hour_of_day 

It produces the following error:

SQL Error [42883]: ERROR: function stddev(timestamp with time zone) does not exist

Basically, I want to see average dispersion for every "hour_of_day", for example [10:10, 10:20, 10:30, 10:40, 10:50] has average dispersion of 15 minutes around the mean time of 10:30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!