M
M
mostalk2020-06-12 16:11:35
MySQL
mostalk, 2020-06-12 16:11:35

How to form a MySQL query to display average daily values ​​for the current month?

There is a table with sensor data that is added to the table every 30 minutes. What query should be to display the average data for each day of the month?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
galaxy, 2020-06-12
@mostalk

SELECT DATE(timestamp), AVG(value) ...
  FROM table
 GROUP BY DATE(timestamp)

D
Dimonchik, 2020-06-12
@dimonchik2013

SELECT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question