Tag: t-sql

Understanding GROUPING and GROUPING_ID Functions in SQL Server

Database development, Statements

The ROLLUP and CUBE operators are used to return results aggregated by the columns in the GROUP BY...
Read More

Different Ways to Compare SQL Server Tables Schema and Data

Database development, Tables, Work with data

SQL Server provides us with different solutions to replicate or archive a database table or tables to another database, or the same...
Read More

How to Handle Errors in SQL Server Nested Transactions

Database administration, Troubleshooting Issues

In this article, we will explore SQL Server Nested Transactions, a transaction block with one or several transactions. The image describes...
Read More

The Art of Aggregating Data in SQL from Simple to Sliding Aggregations

Database administration, Work with data

Let us start our SQL journey to understand aggregating data in SQL and types of aggregations...
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

SQL Server Table Partitioning and Partitions Tutorial

Database development, Tables

Problem In this article, we will focus on the demonstration of table partitioning. The simplest explanation of table partitioning can be...
Read More

Microsoft SQL Operations Studio: Configuration and Querying

Tools & technologies, Utilities & Extensions

In my previous article, Microsoft SQL Operations Studio: Understanding and Installation, we...
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

SQL Server – Dissect the Internals of sp_spaceused

Database development, Stored Procedures

This article is an effort to dissect the output of the sp_spaceused stored procedure. Introduction Understanding the database usage...
Read More

SQL Server Trigger: Understanding and Alternatives

Database development, Triggers

The SQL Server trigger is a special type of stored procedures that is automatically executed when...
Read More
Close