Technological Movements and the Herd Mentality....
It's amazing to me how the herd mentality works in Technology (and many other things) sometimes. I get the idea...
2011-11-29
1,184 reads
It's amazing to me how the herd mentality works in Technology (and many other things) sometimes. I get the idea...
2011-11-29
1,184 reads
Doing some work with converting Multi-Statement TVFs to Inline TVFs and I'm finding that the Inline TVFs cannot use the...
2011-11-08
706 reads
As if I needed any further convincing that nested views were bad....
The other day I had to write a particularly...
2011-02-15
1,197 reads
Found an interesting issue last week....it goes like this:
If you are using INSTEAD OF triggers on views (in SQL 2005)...
2010-12-23
814 reads
According to BOL, "Key-range locks protect a range of rows implicitly included in a record set being read by a...
2010-09-22
1,059 reads
Over the past few days I have been thinking that the Software Industry is in drastic need of a Professional...
2010-07-14
1,321 reads
Just saw something interesting....we have a requirement to divide a result set into a certain number of groups that have...
2010-06-09
771 reads
Just ran into an interesting issue AGAIN. It seems that when you nest views in a query you are opening...
2010-04-05
8,719 reads
It occurred to me the other day that it might be interesting to manage aggregates in an SQL Server database...
2010-03-22
887 reads
I'm doing some interesting research on using BiTemporal tables and I was wondering if anyone out there has any real-world...
2010-03-11
745 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