skip to Main Content

group by 15-minute interval in PostgreSQL

here's a sample from my table in Metabase PostgreSQL: timestamp 2023-01-25T05:00:01+03:00 2023-01-25T05:01:01+03:00 2023-01-25T05:05:01+03:00 2023-01-25T05:13:01+03:00 2023-01-25T05:14:01+03:00 2023-01-25T05:20:01+03:00 2023-01-25T05:24:01+03:00 2023-01-25T05:29:01+03:00 I want to group by 15-minute interval and count events that happen in the interval: timestamp count 2023-01-25T05:00 5 2023-01-25T05:15 3 this…

VIEW QUESTION

How to optimize sql requests? – Postgresql

How to optimize requests? Hello there is a chat which consists of the following tables Chat rooms id, type(USER_TO_USER, USER_TO_SHOP, USER_TO_PLATFORM), name Chat Room Members room_participants id, participantType (USER, SHOP, PLATFORM), participant_id list of messages room_messages - id, participant_id, text,…

VIEW QUESTION
Back To Top
Search