SSC Editorial: How to Keep Up with SQL Server
How to Keep Up With SQL Server ran as the editorial of the day on July 31st. Modest amount of...
2015-08-04
578 reads
How to Keep Up With SQL Server ran as the editorial of the day on July 31st. Modest amount of...
2015-08-04
578 reads
It can be a challenge to keep up with the rapidly evolving SQL Server platform. Andy Warren has a few ideas today.
2015-07-31
364 reads
Would You Pay to Wear Jeans at Work turned out to be popular piece when posted a couple weeks back. The...
2015-07-28
627 reads
We have a solid tradition here in Orlando of offering some all day classes the Thursday and Friday before SQLSaturday....
2015-07-20
629 reads
For this Friday, Andy Warren asks if you would pay to change your wardrobe for work.
2015-07-17
223 reads
The next OPASS meeting is July 23, 2015, featuring David Crook from Microsoft doing a presentation on predicting home value...
2015-07-16
545 reads
Posted last week, Is the Golden Age of Information Technology Almost Over? generated some interesting comments. It’s tough to write about potential...
2015-07-16
541 reads
Today is the last day to submit your name as a candidate for the NomCom. If you’re a PASS member...
2015-07-14
525 reads
PASS announced yesterday the end of the SQLRally brand. It was disappointing news for an idea that started with such...
2015-07-14
646 reads
Just read Microsoft IT migrates mailboxes to Office 365 Exchange Online, a good overview of their migration from Exchange. Lots of...
2015-07-14
945 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