Optimization with temp tables – Example
The code optimization is a mandatory task for the programmable objects in SQL Server. During time some code can start working “badly” i.e. become slow. In that case a...
2016-05-05
11 reads
The code optimization is a mandatory task for the programmable objects in SQL Server. During time some code can start working “badly” i.e. become slow. In that case a...
2016-05-05
11 reads
The code optimization is a mandatory task for the programmable objects in SQL Server. During time some code can start working “badly” i.e. become slow. In that case a...
2016-05-05
8 reads
The code optimization is a mandatory task for the programmable objects in SQL Server. During the time some code can...
2016-05-05
230 reads
The code optimization is a mandatory task for the programmable objects in SQL Server. During time some code can start...
2016-05-05
90 reads
There seems to be two trains of thought and I think this is mainly down to who and where your...
2016-05-13 (first published: 2016-05-05)
4,345 reads
There seems to be two trains of thought and I think this is mainly down to who and where your...
2016-05-05
42 reads
There seems to be two trains of thought and I think this is mainly down to who and where your...
2016-05-05
38 reads
One June 5, I’ll be back in Pensacola, FL for SQL Saturday #491. It’s been a few years since there...
2016-05-05
518 reads
There seems to be two trains of thought and I think this is mainly down to who and where your developers are. The first is that a stored procedure...
2016-05-05
16 reads
I’m pleased to announce that I’m launching my next round of all-day precon training session at the upcoming SQL Saturday in Iowa...
2016-05-05
389 reads
By James Serra
Microsoft shared a broad set of Fabric, Power BI, and SQL updates at FabCon...
By Steve Jones
No, I’m not quitting or retiring. Just going on vacation, but I leave tonight...
Comments posted to this topic are about the item Let's Talk Certifications, which is...
Comments posted to this topic are about the item The Hidden Security Risks of...
Comments posted to this topic are about the item The Empty Aggregate
I have this table in a SQL Server 2025 database:
CREATE TABLE [dbo].[CustomerOrder] ( [OrderID] [int] NULL, [CustomerID] [int] NULL, [total] [money] NULL ) ON [PRIMARY] GOWhat is returned from this code? (answers are for the sum and then the count)
SELECT SUM(total) AS sum,
COUNT(total) AS count
FROM dbo.CustomerOrder;
See possible answers