Advanced T-SQL: Replacing Slow Cursors with Window Functions
This article looks at replacing a cursor with a window function to improve performance.
2026-08-03
7,289 reads
This article looks at replacing a cursor with a window function to improve performance.
2026-08-03
7,289 reads
Introduction When developers first learn SQL aggregation, they usually start with the GROUP BY clause. It works well for summary reports because it combines multiple rows into a single result for each group. For example, you can calculate total sales per region or average salary per department. The limitation of GROUP BY appears when you […]
2026-06-05
4,855 reads
SQL Server 2022 brought powerful new T-SQL functions that eliminate long-standing workarounds. This article walks through five of the most impactful additions — GENERATE_SERIES, GREATEST/LEAST, DATE_BUCKET, the WINDOW clause, and IS NOT DISTINCT FROM — with practical code examples you can use immediately.
2026-05-29
7,493 reads
2026-05-22
613 reads
I’ve used SQL window functions for years, but I’ve never fully understood framing. To truly master window functions, you need at least a basic grasp of framing and how to apply it to your queries. Framing is especially helpful when working with aggregate functions. How can you overcome this hesitation to try framing?
2025-12-26
A look at window functions in SQL and how they can be used to query data without the restrictions of a GROUP BY.
2025-09-12
7,453 reads
2025-02-26
526 reads
2025-02-12
604 reads
2024-10-30
541 reads
2024-10-23
491 reads
We spent two days benchmarking Snowflake Postgres mirroring under load. Postgres data reached Snowflake...
When data and AI strategies compete for the same platform, teams duplicate work and...
By James Serra
Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...
BCA KCP Prima Sunter : Telp|wa0821-269-22311 Jl. Danau Sunter Utara No.A2-A3, RT.10/RW.11, Sunter Jaya,...
BCA KCU TANJUNG PRIOK : Telp|wa0821-269-22311 Jl. Enggano No.22-23, RT.8/RW.16, Tj. Priok, Kec. Tj....
BCA KCU KELAPA GADING : Telp|wa0821-269-22311 Menara Satu Sentra Klp. Gading, Jl. Boulevard Bar....
Which class of errors are automatically written to the error log?
See possible answers