---
title: "Discussion on \"Aggregate according to Time Interval — From SQL to SPL #27\" | Hashnode"
description: "Discussion on \"Aggregate according to Time Interval — From SQL to SPL #27\". Problem description & analysis:\nA certain database table stores time-series data, with intervals of several seconds between each record.\n\nTask: Now we need to do a group and aggregation every minute, summarizing data for 5 minutes each time. For exam..."
url: "https://hashnode.com/posts/aggregate-according-to-time-interval-from-sql-to-spl-27/682162fe171495ddeecb9314"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Aggregate according to Time Interval — From SQL to SPL #27](https://esproc-desktop.hashnode.dev/aggregate-according-to-time-interval-from-sql-to-spl-27?utm_source=hashnode&utm_medium=feed)

Problem description & analysis: A certain database table stores time-series data, with intervals of several seconds between each record. Task: Now we need to do a group and aggregation every minute, summarizing data for 5 minutes each time. For exam...

May 12, 2025 · 2 min read · esproc-desktop.hashnode.dev  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#sqltutorial](https://hashnode.com/tag/sqltutorial)
-   [#sql-server](https://hashnode.com/tag/sql-server)
-   [#databases](https://hashnode.com/tag/databases)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#data-analysis](https://hashnode.com/tag/data-analysis)
-   [#data-analytics](https://hashnode.com/tag/data-analytics)
-   [#data-analysis-training](https://hashnode.com/tag/data-analysis-training)
-   [#data-engineering](https://hashnode.com/tag/data-engineering)
-   [#esproc-spl](https://hashnode.com/tag/esproc-spl)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#productivity](https://hashnode.com/tag/productivity)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[esProc](https://hashnode.com/@esProcDesktop)

@esProcDesktop

  
[View profile](https://hashnode.com/@esProcDesktop)

esProc SPL is a JVM-based programming language designed for structured data computation, serving as both a data analysis tool and an embedded computing engine. FREE download👉🏻: https://www.esproc.com/download-esproc

## Responses 1

Markdown supported · ⌘↵ to post

[esProc](https://hashnode.com/@esProcDesktop)

[May 12, 2025](https://hashnode.com/posts/aggregate-according-to-time-interval-from-sql-to-spl-27/682162fe171495ddeecb9314/comment/6821658ee3db29ef4225bbd4)

We'd love to hear your feedback!

✍🏻Discord: [discord.gg/sxd59A8F2W](https://discord.gg/sxd59A8F2W) ✍🏻Reddit:[reddit.com/r/esProc\_Desktop](https://www.reddit.com/r/esProc_Desktop/)
