---
title: "#esproc-spl articles | Hashnode"
description: "Explore 39 articles tagged #esproc-spl on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/esproc-spl"
---

Tag

# #esproc-spl

39 posts · 0 followers

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 23, 2025](https://hashnode.com/posts/generate-event-sequence-numbers-within-a-specified-time-interval-from-sql-to-spl-42/6858e9059546d8843d236553)

### [Generate Event Sequence Numbers within a Specified Time Interval — From SQL to SPL #42](https://esproc-desktop.hashnode.dev/generate-event-sequence-numbers-within-a-specified-time-interval-from-sql-to-spl-42?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: A certain table in the MS SQL database has three fields: account, date and time of string type. Task: Now we need to add a sequence number column Seq for the group. When a new event occurs for an account within one ho...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/generate-event-sequence-numbers-within-a-specified-time-interval-from-sql-to-spl-42?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/generate-event-sequence-numbers-within-a-specified-time-interval-from-sql-to-spl-42/6858e9059546d8843d236553)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 20, 2025](https://hashnode.com/posts/row-to-column-conversion-involving-uncertain-columns-from-sql-to-spl-41/6854e21cb5a9ccbfe54b01e0)

### [Row to Column Conversion Involving Uncertain Columns — From SQL to SPL #41](https://esproc-desktop.hashnode.dev/row-to-column-conversion-involving-uncertain-columns-from-sql-to-spl-41?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: The query results of the Postgresql database return 6 columns, with the first column being the grouping column, the second column being the Value column within the group, and columns 3–6 being the Key columns within th...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/row-to-column-conversion-involving-uncertain-columns-from-sql-to-spl-41?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/row-to-column-conversion-involving-uncertain-columns-from-sql-to-spl-41/6854e21cb5a9ccbfe54b01e0)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 18, 2025](https://hashnode.com/posts/search-for-records-containing-a-specified-string-group-in-multi-fields-from-sql-to-spl-40/68523420c2aee23b0caa5a19)

### [Search for Records Containing a Specified String Group in Multi Fields — From SQL to SPL #40](https://esproc-desktop.hashnode.dev/search-for-records-containing-a-specified-string-group-in-multi-fields-from-sql-to-spl-40?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: A table in an Oracle database has multiple string fields. Task: Now we need to input a parameter that contains multiple strings separated by commas. We need to find the records in the table that contain all these stri...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/search-for-records-containing-a-specified-string-group-in-multi-fields-from-sql-to-spl-40?utm_source=hashnode&utm_medium=feed)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 16, 2025](https://hashnode.com/posts/add-records-that-meet-the-criteria-before-each-group-after-grouping-from-sql-to-spl-39/684f8f1177ed991dcfbd293a)

### [Add Records that Meet the Criteria before Each Group after Grouping — From SQL to SPL #39](https://esproc-desktop.hashnode.dev/add-records-that-meet-the-criteria-before-each-group-after-grouping-from-sql-to-spl-39?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: In a certain view of the PostgreSQL database, the row\_index field is an underscore separated string and also a grouping field. Some groups’ row\_index can be divided into 3 parts, while others can be divided into 2 part...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/add-records-that-meet-the-criteria-before-each-group-after-grouping-from-sql-to-spl-39?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/add-records-that-meet-the-criteria-before-each-group-after-grouping-from-sql-to-spl-39/684f8f1177ed991dcfbd293a)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 12, 2025](https://hashnode.com/posts/count-distinct-within-intervals-in-order-from-sql-to-spl-38/684a4cb054c34c9c921e5b86)

### [Count Distinct within Intervals in Order — From SQL to SPL #38](https://esproc-desktop.hashnode.dev/count-distinct-within-intervals-in-order-from-sql-to-spl-38?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: The Teradata database table has three fields: date, account, and the name of the product purchased by the account. Task: Now we need to calculate how many types of products each account has purchased before each day, ...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/count-distinct-within-intervals-in-order-from-sql-to-spl-38?utm_source=hashnode&utm_medium=feed)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 10, 2025](https://hashnode.com/posts/conditional-grouping-from-sql-to-spl-37/68479ba2c746ef0a561975a6)

### [Conditional Grouping — From SQL to SPL #37](https://esproc-desktop.hashnode.dev/conditional-grouping-from-sql-to-spl-37?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: A certain database table has multiple fields that can be grouped. Task: Now we need to perform conditional grouping: group by the first two fields ID and SPLIT. If there are no duplicate DATEs within the group, keep t...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/conditional-grouping-from-sql-to-spl-37?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/conditional-grouping-from-sql-to-spl-37/68479ba2c746ef0a561975a6)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 6, 2025](https://hashnode.com/posts/change-duplicate-contents-to-null-from-sql-to-spl-36/684253bf6a525bff768ed334)

### [Change Duplicate Contents to NULL — From SQL to SPL #36](https://esproc-desktop.hashnode.dev/change-duplicate-contents-to-null-from-sql-to-spl-36?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: The first two columns of a certain database table have duplicate values, such as the 2nd-3rd records and the 1st record being duplicated below. Task: Now we need to change all duplicate values to null. In other words,...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/change-duplicate-contents-to-null-from-sql-to-spl-36?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/change-duplicate-contents-to-null-from-sql-to-spl-36/684253bf6a525bff768ed334)

[esProc](https://hashnode.com/@esProcDesktop) · [Jun 4, 2025](https://hashnode.com/posts/get-the-initial-date-using-the-total-from-sql-to-spl-35/683fac24826455859c7b1f4f)

### [Get the Initial Date Using the Total — From SQL to SPL #35](https://esproc-desktop.hashnode.dev/get-the-initial-date-using-the-total-from-sql-to-spl-35?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: A certain database table records the planned inbound quantity and total inventory after inbound on specific dates, such as the planned inbound quantity of 0.6 on February 26th, resulting in a total inventory of 3. Tas...

2 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/get-the-initial-date-using-the-total-from-sql-to-spl-35?utm_source=hashnode&utm_medium=feed)

[esProc](https://hashnode.com/@esProcDesktop) · [May 30, 2025](https://hashnode.com/posts/getting-the-available-ranges-from-two-tables-from-sql-to-spl-34/683917253ccef602a376cc87)

### [Getting the Available Ranges from Two Tables — From SQL to SPL #34](https://esproc-desktop.hashnode.dev/getting-the-available-ranges-from-two-tables-from-sql-to-spl-34?utm_source=hashnode&utm_medium=feed)

Problem Description & Analysis: There are two tables in a certain database. The original inventory table data\_add stores multiple batches of inventory for multiple items. Each batch of inventory has a starting number START\_NUM and an ending number EN...

3 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/getting-the-available-ranges-from-two-tables-from-sql-to-spl-34?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/getting-the-available-ranges-from-two-tables-from-sql-to-spl-34/683917253ccef602a376cc87)

[esProc](https://hashnode.com/@esProcDesktop) · [May 22, 2025](https://hashnode.com/posts/statistics-by-time-window-from-sql-to-spl-31/682e8bf678f169e5db862ade)

### [Statistics by Time Window — From SQL to SPL #31](https://esproc-desktop.hashnode.dev/statistics-by-time-window-from-sql-to-spl-31?utm_source=hashnode&utm_medium=feed)

Problem description & analysis: The Time field of a certain database table is time, and the time interval is sometimes greater than 1 minute. Task: Now we need to divide the data into windows every minute, fill in the missing windows, and calculate ...

3 min read · [esproc-desktop.hashnode.dev](https://esproc-desktop.hashnode.dev/statistics-by-time-window-from-sql-to-spl-31?utm_source=hashnode&utm_medium=feed)
