Count the Number of Weekend Days between Two Dates
Handling weekends can be tricky in SQL. This article shows you how to Count the Number of Weekend Days between Two Dates
2020-10-16 (first published: 2018-08-23)
12,500 reads
Handling weekends can be tricky in SQL. This article shows you how to Count the Number of Weekend Days between Two Dates
2020-10-16 (first published: 2018-08-23)
12,500 reads
On some occasions you will need to aggregate Data for the Last Day of the Month. This article explains how.
2020-04-03 (first published: 2018-08-16)
6,851 reads
2018-08-14
1,116 reads
Sometimes you need to output blank lines
- in effect displaying Records for Missing Data. This article explains how to use a CTE to do this
2018-08-09
4,702 reads
Comparing year on year sales is a fundamental requirement in much commercial analysis - here you learn how to do this in SQL
2018-08-02
3,278 reads
2018-07-31
1,125 reads
DO you know how to display median values from a Dataset? In this short article you will use windowing functions to do this
2018-07-26
1,754 reads
2018-07-23
1,119 reads
T-SQL window functions, introduced in 2005 with enhancements in 2012, are great additions to the T-SQL language. In this article, Kathi Kellenberger explains what you need to know to get good performance when using these functions.
2018-07-16
4,197 reads
This short article shows a simple example of how to generate completely random sample output from a Dataset
2018-07-12
6,865 reads
Yes, you’re reading that right, we’re going to download a report that cannot be...
By Chris Yates
When Microsoft announced SQL Server 2025, I was curious about what would truly change...
By Steve Jones
Redgate has a research arm, called the Foundry, that has been experimenting with AIs...
Comments posted to this topic are about the item Poor Name Choice
Comments posted to this topic are about the item Getting the Indexed Columns
Comments posted to this topic are about the item T-SQL in SQL Server 2025:...
I run this code on SQL Server 2022 to get a list of all the indexes and their key columns. What is returned?
SELECT
INDEX_COL (N'AdventureWorks2017.Sales.SalesOrderDetail') See possible answers