Should You Use CHOOSE(): #SQLNewBlogger
I was experimenting with CHOOSE() recently after I was asked a question. In a previous post, I found it can take a (ridiculous) number of arguments. In this post,...
2026-11-18
57 reads
I was experimenting with CHOOSE() recently after I was asked a question. In a previous post, I found it can take a (ridiculous) number of arguments. In this post,...
2026-11-18
57 reads
I did not expect 27 responses to my T-SQL Tuesday #204 invitation, but it appears many folks had a lot to say about whether or not blogs are relevant....
2026-11-17
38 reads
Should you adopt an off-the-shelf AI tool, partner with a specialist, build in-house, or acquire the capability? Use two questions and six practical signals to decide which path fits...
2026-11-17
60 reads
Part 1 of my What's New in SQL Server for the Developer series. IIF, CHOOSE, TRY_CONVERT, FORMAT, THROW, SEQUENCE, OFFSET/FETCH and EOMONTH, with examples you can run today.
2026-11-17
36 reads
Today at Ignite, Microsoft announced the public preview of the Azure SQL Database container. The line in the announcement that jumped out at me was this one: the container...
2026-11-17
40 reads
So far in this series I’ve been rebuilding members on arrays I already had. In my reseed post, I rebuilt aen-mongo-06 from a replicated snapshot of the primary. This...
2026-11-17
14 reads
Every copy of MongoDB data I’ve made so far in this series lives on a FlashArray. The snapshots sit on the same array as the volumes they protect, and...
2026-11-17
11 reads
In my reseed post, I spent a lot of time convincing you that you don’t need fsyncLock. One crash-consistent snapshot of the primary, replicated to every array, rebuilt every...
2026-11-17
13 reads
In my last post, I restored every member of a replica set from one snapshot on the same array. In real life, you usually lose one member: a host...
2026-11-17
15 reads
I’ve been running MongoDB on Everpure FlashArray in my lab, and the first thing I wanted to prove is the simplest one. Can I snapshot an entire replica set...
2026-11-17
20 reads
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
By ReviewMyDB
Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...
Note: This is more of a note to myself than an attempt to preach...
Comments posted to this topic are about the item How to connect your SQL...
Comments posted to this topic are about the item Finding the Black Friday Sales...
Earlier this week I had an issue with a Win 8.1 laptop I was...
We are tracking sales for Black Friday today. We have these aggregate values:
CREATE TABLE dbo.BlackFridaySales
(
Product NVARCHAR(50) NOT NULL PRIMARY KEY,
Units INT NOT NULL
);
INSERT INTO dbo.BlackFridaySales (Product, Units)
VALUES (N'55" TV', 900),
(N'Air Fryer', 500),
(N'Noise-Cancel Headphones', 500),
(N'Robot Vacuum', 300);
I'm trying to get a ranking of the sales that would return 1, 2, 2, 3 for the product levels. Which query does this? See possible answers