C
C
centrin02016-08-16 15:41:46
Iron
centrin0, 2016-08-16 15:41:46

How to get the number of records per hour?

There is a table with columns: date (timestamp), message.
You need to display a table showing the number of messages per hour.
To show that there are 5 messages between 11 and 12 o'clock, 10 messages between 12 and 13 o'clock.
As I understand it, there will be something like SELECT COUNT (*) GROUP BY ...
How to make a grouping by hours?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
cypselusmurarius, 2016-05-06
@cypselusmurarius

In the settings, change the function of the "Shut down" button. A laptop?

Z
Zhbert, 2016-05-06
@Zhbert

Start - control panel - power supply - actions of the power buttons
And there put on the "Action when the power button is pressed" "Shut down" in both options, both from the mains and from the battery (if the laptop).

R
Ruslan Ganeev, 2016-05-07
@GaneevRR

There is info here

G
Garik_Shuster, 2016-05-10
@Garik_Shuster

Did you add iron to the PC?
I had this after installing an additional USB 3 controller

T
toxa82, 2016-08-16
@centrin0

look at the EXTRACT (field FROM source) function like
SELECT EXTRACT(HOUR FROM TIMESTAMP '2001-02-16 20:38:40');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question