I need to fetch the records count per minute from the MySQL logging table. Please help me to achieve it.
The count should be consider for every one minute. If there are no records logged in that minute it should display the count as 0.
Please find the below table and records set expecting as below.
Table : Table Name: tlogging
|----------------------|---------------|-----------------|
| InTime | Employee | Country |
|----------------------|---------------|-----------------|
| 2019-09-18 10:00:01 | A | MY |
| 2019-09-18 10:00:10 | B | UK |
| 2019-09-18 10:00:44 | C | US |
| 2019-09-18 10:00:53 | D | CN |
| 2019-09-18 10:02:22 | E | JP |
| 2019-09-18 10:03:04 | F | SG |
|----------------------|---------------|-----------------|
Record Set
|----------------------|---------------|
| InTime | Count(*) |
|----------------------|---------------|
| 2019-09-18 10:00:00 | 4 |
| 2019-09-18 10:01:00 | 0 |
| 2019-09-18 10:02:00 | 1 |
| 2019-09-18 10:03:00 | 1 |
|----------------------|---------------|