Blog

Classifying Numbers with SQL

This puzzle takes us into Discrete Mathematics and Number Theory, where numbers aren’t just values—they're types. Whether a number is odd, even, prime, or part of a sequence like Fibonacci, Number Theory is all about how we classify them. I started by generating a table of integers and labeling each with its corresponding classification. A … Continue reading Classifying Numbers with SQL

Whimsical SQL Magic: Enchanted Tools and Terms for Database Developers

Hello, everyone! In a previous post, I asked ChatGPT to create a religion using SQL, which turned out to be quite amusing (and possibly insightful). This time, I got the idea to ask ChatGPT to come up with a list of nonsensical SQL terms and their definitions (and a funny name for this blog post). … Continue reading Whimsical SQL Magic: Enchanted Tools and Terms for Database Developers

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