SSC Editorial: The Problem Solver
The Problem Solver. Ever scoffed at personality types? Surely none of us are just one thing, but often we are...
2015-08-31
1,118 reads
The Problem Solver. Ever scoffed at personality types? Surely none of us are just one thing, but often we are...
2015-08-31
1,118 reads
One of the big goals for SQLSaturday was for it to be a membership drive. It’s worked hugely well in...
2015-08-27
705 reads
Compliance training, never a fun topic and I think that is too bad. A combination of companies checking the box,...
2015-08-26
706 reads
When a new SQLSaturday event is launched an email is sent to all the speakers who have opted in to...
2015-08-25
621 reads
Meeting held at Nova Southeastern here in Orlando Arrived early to meet David Pless, good thing we were early – couldn’t...
2015-08-17
639 reads
Meeting is held at Sonny’s BBQ, they have a long room (used to be outside seating) that works pretty well...
2015-08-17
619 reads
My mom gave me a book about Leonard Nimoy recently and we talked later about the impact his life had...
2015-08-15
572 reads
Scott McKenzie was the DJ of Mix 105 here in Orlando for an astounding 24 years and that’s been the...
2015-08-12
624 reads
David Pless is presenting:
Query Store is a new feature in SQL Server 2016, and is also available in Azure SQL...
2015-08-12
557 reads
Ran across this while visiting the Air & Space Museum over the summer, the Smithsonian launched a Kickstarter campaign to raise...
2015-08-05
665 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