Use the SQL GROUP BY Clause is to consolidate like values into a single row.  The group is a set of columns. The group

Read More
SQL GROUP BY Guide

The SQL SUM function returns the total value within a table or group. In its simplest use, SUM() totals a column for all results and returns a

Read More
SQL SUM Function

In this article learn when to use WHERE and HAVING.  Both perform similar functions, but for different purposes! All the examples for

Read More
What is the difference between WHERE and HAVING clauses?

The SQL COUNT function is an aggregate function used to count rows.  Use it alone within a SELECT statement to return a count of all rows within

Read More
SQL COUNT Function

Use the Approximate Count Distinct function, APPROX_COUNT_DISTINCT, to return an estimate distinct count of values withing rows. It is best suited for

Read More
SQL APPROX_COUNT_DISTINCT Function

The SQL MIN function returns the smallest value within a table or group.  Throughout this section we’ll use the HumanResource.Employee table for our examples:  Using the

Read More
SQL MIN Function

The SQL MAX function returns the largest value within a table or group. In this section, we’ll use the HumanResource.Employee table for our examples:  Using the data above, MAX calculates

Read More
SQL MAX Function

The SQL AVG function returns the average value within a table or group. In this section, we’ll use the HumanResource.Employee table for our examples: Using sample data above, AVG calculates

Read More
SQL AVG Function

In this episode of SQL Minute I want to share with you how to create a pivot or cross tab chart. I’ll

Read More
SQL Pivot Table – Learn to Create in Six Steps

The running total in SQL can be calculated in several ways. This article will cover two methods:  the Joins and the Window functions.

Read More
Use SQL to Calculate a Running Total

In this puzzle, we’re going to learn how to create a dynamic pivot table using SQL Server.  A dynamic pivot table is

Read More
What is a Dynamic Pivot Table?

Both the GROUP and ORDER BY clauses are used in organizing data. Find out which of the two is used to sort

Read More
What is the Difference between ORDER and GROUP BY?