Building The SQLSaturday Orlando Marketing Plan-Part 23
Here’s the latest update on our registrations. We’re still ahead of all our previous events, that’s good, and we’re 2...
2014-07-16
572 reads
Here’s the latest update on our registrations. We’re still ahead of all our previous events, that’s good, and we’re 2...
2014-07-16
572 reads
I did an online presentation about PCI and Credit Card Security for BSSUG last night and it went pretty well,...
2014-07-16
671 reads
Had our second planning meeting, still trying to complete the email template and realized we had not clearly defined two...
2014-07-15
636 reads
Many of you are interested in learning more about SQL Server and improving your career. However can you extend that to your colleagues? Can you convince them to become better IT professionals? Andy Warren has some thoughts.
2014-07-14
220 reads
Most PASS Chapter meetings are supported by sponsors who either provide money which is often used for food and drink,...
2014-07-14
730 reads
If you work with colleagues that aren’t as interested in growing and learning as you are, I hope you’ll read...
2014-07-14
635 reads
Probably you’ve heard about it already, but a quick post just in case – you can download a 100 or so...
2014-07-11
993 reads
Rained as I left (early) for the meeting, confirming again why I always leave early – stuff happens (in Orlando, rain...
2014-07-11
668 reads
Last week ended up better than expected when PASS decided to release feedback to speakers (selected or not) who requested...
2014-07-09
698 reads
An SSIS question! How’s that for a change of pace? SSIS Column Export is, as you might well surmise, about...
2014-07-09
570 reads
By Chris Yates
I’m thrilled to be covering the Microsoft Keynote: Fuel AI Innovation with Azure Databases on Day...
By James Serra
Many customers ask me about the advantages of moving from Azure Synapse Analytics to...
By Brian Kelley
The last data centric conference I attended was the PASS Summit in 2019. A...
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