Tip: COLLATE for “Cannot resolve collation conflict” error
Some data professionals are VERY well versed with collation, and some never ever have to touch the concept. That second...
2014-03-17
571 reads
Some data professionals are VERY well versed with collation, and some never ever have to touch the concept. That second...
2014-03-17
571 reads
I read a terribly excited blog this morning by a guy who had just discovered Alt-F1 in SSMS. (If you don’t...
2014-03-14
642 reads
Fellow DBA: There are so many alerts! It takes me a long time to get through them all. How do...
2014-03-10
675 reads
I work in a lot of different offices and conference venues, in addition to my home office. At home, I need a...
2014-03-03
877 reads
SQL Server is a software product, right? And software has a history of having bugs, getting updates, and having support...
2014-02-24
580 reads
Ever since I worked in an office with adjustable standing desks, I’ve been thinking about getting a standing desk for...
2014-02-17
490 reads
We have here an easy, handy-dandy way to find out how much CPU is in use on your server. Of...
2014-02-10
561 reads
It’s been a long time since I’ve been a true newbie to a technology. There are plenty of things I...
2014-02-03
590 reads
Today let’s play around with the LIKE operator. Like, totally. Like, Introduction Like “determines whether a specific character string matches...
2014-01-27
746 reads
It’s awfully comforting to see all those backup and maintenance jobs in your SQL Agent list, isn’t it? It’d be...
2014-01-22
538 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