---
title: "Discussion on \"Getting the Available Ranges from Two Tables — From SQL to SPL #34\" | Hashnode"
description: "Discussion on \"Getting the Available Ranges from Two Tables — From SQL to SPL #34\". Problem Description & Analysis:\nThere 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..."
url: "https://hashnode.com/posts/getting-the-available-ranges-from-two-tables-from-sql-to-spl-34/683917253ccef602a376cc87"
---

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

Discussion

# [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...

May 30, 2025 · 3 min read · esproc-desktop.hashnode.dev  
Updated Jun 4, 2025  
Read the article

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

## 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 30, 2025](https://hashnode.com/posts/getting-the-available-ranges-from-two-tables-from-sql-to-spl-34/683917253ccef602a376cc87/comment/6839194253839fc71dc3f553)

Feel free to download esProc SPL and share your feedback with us!

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