The CHOOSE keyword
G’day,
I love coming across features of SQL that I’ve not used before and one happened today – the CHOOSE statement – introduced...
2014-02-17
1,553 reads
G’day,
I love coming across features of SQL that I’ve not used before and one happened today – the CHOOSE statement – introduced...
2014-02-17
1,553 reads
The baddest swamp buggies in the south!
Formed in 2009 the Million Dollar Buggy club was originally comprised of 10 members...
2014-02-16
660 reads
In this post, we’ll walk through the process of deploying an Apache Hadoop 2 cluster on the EC2 cloud service...
2014-02-16
1,681 reads
It’s been a couple of months since my last SQLSaturday and it’s time! Atlanta is my third SQL Saturday that I’ll...
2014-02-15
232 reads
It’s been a couple of months since my last SQLSaturday and it’s time! Atlanta is my third SQL Saturday that I’ll...
2014-02-15
496 reads
I’m just a little late to the party, but no time like the present, right? I plan to be very...
2014-02-15
640 reads
A few weeks ago I wrote a post about comparing the contents of entire tables in Power Query, and a...
2014-02-15
769 reads
A simple query in Hive reads the entire dataset even if we have where clause filter. This becomes a bottleneck...
2014-02-15
578 reads
Facebook graph is the primary way for external apps to talk with Facebook. This allows you to get all the...
2014-02-15
532 reads
The first time I had an Islay single malt, my mind was blown. In my first foray into the world...
2014-02-15
453 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