2025-06-13
693 reads
2025-06-13
693 reads
SQL 2022 introduced the function generate_series which permits us to solve problems for which we previously had to use a table of numbers (also known as a "tally table"). generate_series is a great addition, because when using a table of numbers there was always a risk that you could run out of numbers. Or some joker could have deleted rows from the table. All these worries are gone with generate_series.
2025-03-05
This article shows how GENERATE_SERIES can be used with a few practical examples and a warning on parameters.
2023-10-09
7,983 reads
tl;dr The title says it all. Prologue One of the keys to my personal learning is that, very early in my database career, I taught myself how to make lot’s of rows of Random Constrained Data in a comparatively short time. With the help of a few good folks over time, the method has been […]
2023-09-18
3,843 reads
In this tip, we cover how to use the GENERATE_SERIES function to expand a range of dates into rows
2022-09-07
2022-08-15
357 reads
By Steve Jones
I can’t believe I’ve been at Redgate long enough to get a third sabbatical....
By Steve Jones
Don’t let someone else’s urgency becomes your emergency. In fact, don’t be governed by...
By Rohit Garg
Is Air Travel Safe? Yes, air travel remains statistically the safest mode of transportation. In...
Embarking on a 200 hours YTT in Rishikesh is a transformative journey that goes...
Hi, I’ve provisioned an Azure Database Watcher to monitor our 4 Azure SQL Managed...
Comments posted to this topic are about the item Can You Ask for a...
What is returned by this code in SQL Server 2022?
SELECT value FROM GENERATE_SERIES(4, 1);See possible answers