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

Understanding Different Key Types in SQL

In the realm of database design, there are a total of twelve distinct keys to be taken into account. Primary, foreign, and unique keys are typically well-known among SQL developers, as they are implemented through SQL syntax and serve as constraints. However, when undertaking database design, it is important to consider additional key types that … Continue reading Understanding Different Key Types in SQL

What are the different SQL Server databases used for?

In Microsoft SQL Server, several different types of databases can be created and used for different purposes. Here is a brief overview of some of the most common types of databases in SQL Server and the scenarios in which they are typically used. Databases are categorized into two different types, User and System: User databases: … Continue reading What are the different SQL Server databases used for?

Let’s talk about the MERGE statement

In SQL, the MERGE statement is a powerful tool that allows you to perform multiple actions on a single table simultaneously. However, it's not always the best choice, and there are several reasons why you might want to consider using separate INSERT, UPDATE, and DELETE statements instead. Several issues can arise when using the MERGE … Continue reading Let’s talk about the MERGE statement

Stored Procedures: Returning Data Using a Result Set

For this article, we are going to examine the benefit of using stored procedures that simply return a result set (i.e. a stored procedure that has a SELECT statement). Before we do a shallow dive into this functionality, it is worth noting that SQL Server has three methods of returning data from a stored procedure: … Continue reading Stored Procedures: Returning Data Using a Result Set