Blog

Recursion using Functions and Stored Procedures in SQL Server

When considering recursion in SQL, developers typically think of Common Table Expressions (CTEs) to solve hierarchical models. However, SQL Server also allows for recursive functions and stored procedures, a feature not in Microsoft's documentation or the literature I have encountered. This approach to recursion is less known, and rightly so, as there are usually more … Continue reading Recursion using Functions and Stored Procedures in SQL Server

Testing the Performance of Cursors in SQL Server

The conventional wisdom in T-SQL programming often advises against using cursors in SQL Server, citing performance concerns and potential issues. This advice stems from the understanding that cursors, which process data row by row, can lead to less efficient operations compared to set-based approaches. However, there are scenarios where the task at hand necessitates iterating … Continue reading Testing the Performance of Cursors in SQL Server

Unit Testing vs QA When Creating ETL pipelines using SQL

Hello, everyone. I've always found the distinction between unit testing and QA testing when creating ETP pipelines using SQL to be a somewhat gray area, so I thought I would throw this into ChatGPT and see its response. One of the more important aspects I find when performing checks is to ensure you have proper … Continue reading Unit Testing vs QA When Creating ETL pipelines using SQL

Attributes, Fields, and Columns

In the context of databases, the terms attribute, field, and column are often used interchangeably, especially in relational databases. However, there are slight nuances in the way they're used within different contexts. Here, I create a blog post to quickly define the differences and nuances of these terms. If you are unfamiliar with ERD, Conceptual, … Continue reading Attributes, Fields, and Columns