Upgrade and Refresh, or Not?
Today we have a guest editorial from Andy Warren that looks at the upgrade cycle and how that affects our jobs.
2015-03-06
123 reads
Today we have a guest editorial from Andy Warren that looks at the upgrade cycle and how that affects our jobs.
2015-03-06
123 reads
Today we have a guest editorial from Andy Warren with a few hints on how you can continue to be proactive as a DBA.
2015-02-05
192 reads
I’ve been running WordPress for years now and find it to be a solid solution for what I want to...
2014-12-24 (first published: 2014-12-16)
6,372 reads
Today Andy Warren talks about an employee work item that many of you might not be tasked with.
2014-12-22
133 reads
I recently read Onward: How Starbucks Fought for Its Life without Losing Its Soul by Howard Schultz. Not bad reading...
2014-12-08
844 reads
I’m spending some time this week and the next few weeks thinking about what I want to talk about next...
2014-12-04
644 reads
It’s been just over two months since I wrote the first post for PASSWatch. I’m trying hard to keep PASSWatch...
2014-12-02
544 reads
I finished reading Ghost of My Father by Scott Berkun over the holiday weekend. It’s an intense read about the...
2014-12-02
537 reads
Back in March 2013 I wrote We Need A Place For SQLFamily News after the death of the spouse of...
2014-12-01
512 reads
I was pleased to get the email yesterday confirming that I was selected to speak at SQLSaturday #362 on January...
2014-11-21
593 reads
How can you achieve good enough without compromising the process/product? In the world of...
By Patrick
One of my customers recently wanted to rename each of the SQL audit files...
The post The pros and cons of self-service BI: What every industry leader should...
Comments posted to this topic are about the item What's New for the Microsoft...
Comments posted to this topic are about the item Using Outer Joins
I have this data in a SQL Server 2019 database:
Customer table CustomerID CustomerName 1 Steve 2 Andy 3 Brian 4 Allen 5 Devin 6 Sally OrderHeader table OrderID CustomerID OrderDate 1 1 2024-02-01 2 1 2024-03-01 3 3 2024-04-01 4 4 2024-05-01 6 4 2024-05-01 7 3 2024-06-07 8 2 2024-04-07I want a list of all customers and their order counts for a period of time, including zero orders. If I run this query, how many rows are returned?
SELECT c.CustomerName, COUNT(oh.OrderID) FROM dbo.Customer AS c LEFT JOIN dbo.OrderHeader AS oh ON oh.CustomerID = c.CustomerID WHERE oh.Orderdate > '2024/04/01' GROUP BY c.CustomerNameSee possible answers