Author: Ben Richardson

Ben Richardson runs Acuity Training. Acuity is an IT training business offering classroom courses in London and Guildford. It is a leading provider of SQL training the UK and offers a full range of SQL training from introductory training to advanced administration courses.

Unleash the Power of SQL Pivot and Unpivot: A Complete Guide to Data Transposing Techniques

Database development, Statements

Data manipulation is an essential skill for anyone working with SQL databases. It allows you to...
Read More

Calculating Running Total with OVER Clause and PARTITION BY Clause in SQL Server

Database development, Statements • One Comment

You often come across scenarios where you have to calculate a running total of a quantity. A running total refers to the sum of values in...
Read More

Grouping Data using the OVER and PARTITION BY Functions

Database administration, Work with data • One Comment

The OVER and PARTITION BY functions are both functions used to portion a results set according to specified criteria. This article explains...
Read More

Dynamic SQL vs Stored Procedure

SQL Server

Dynamic SQL and stored procedures are among the most important SQL Server components. Both have...
Read More

Creating Dynamic Pivot Table with QUOTENAME Function

Database development, Statements, Tables

In my previous article on the basic pivot operator, we saw how pivot operator could be used to convert rows to columns, resulting in pivot...
Read More

Understanding Pivot Operator in SQL

Database development, Statements

The pivot operator in SQL Server converts each row in the aggregated result set into corresponding columns in the output set. The pivot...
Read More

Understanding Transactions in SQL

Database administration, Transaction Log • 2 Comments

A transaction in SQL is a unit of execution that groups one or more tasks together. A transaction...
Read More

The Lost Update Problem in Concurrent Transactions

Database administration, Transaction Log, Troubleshooting Issues

The lost update problem occurs when 2 concurrent transactions try to read and update the same data. Let’s understand this with the help...
Read More

Understanding Dirty Read Problem with SQL Server

Database administration, Troubleshooting Issues

One of the most common problems that occur while running concurrent transactions is the Dirty Read problem. A dirty read occurs when one...
Read More

Introducing Common Table Expressions in SQL Server

Database development, Tables

Common Table Expressions, or CTE for short, is simply a technique to create a temporary set of...
Read More
Close