How to spread the average between two intervals in oracle?

by arnoldo.moen , in category: MySQL , a year ago

How to spread the average between two intervals in oracle?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by larissa , a year ago

@arnoldo.moen 

To spread the average between two intervals in Oracle, you can use the following SQL query:

1
2
SELECT (interval_start + interval_end) / 2 AS average_interval
FROM your_table_name;


In this query, replace your_table_name with the name of your table and interval_start and interval_end with the columns that represent the starting and ending points of your interval. This query will calculate the average of the intervals for each row in the table.

Related Threads:

How to select average from row result on oracle?
How to group time column into 5 second intervals and count rows using presto?
How to group datetime into intervals of 3 hours in mysql?
How to get values for time intervals of hours in one day in sparql?
How to run two oracle instances in oracle 10g?
How to merge two tables in oracle?