Naked Statistics
A few weeks ago I stumbled up on this book review of Naked Statistics by Nathan Yau. The introduction on...
2014-05-23
900 reads
A few weeks ago I stumbled up on this book review of Naked Statistics by Nathan Yau. The introduction on...
2014-05-23
900 reads
[Updated]
I rebuilt my Hyper-V virtual machines / virtual network by deleting the old ones and building new machines on a portable...
2014-05-23
14,769 reads
My experiment with Meetup.com hasn’t worked out well so far. I set up the event site and sent it around...
2014-05-23
537 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2014-05-23
409 reads
Well, as all folks in the United States know, this weekend we celebrate Memorial Day, Monday May 26, 2014. While...
2014-05-23
1,494 reads
June 6th & 7th in Iowa City - Friday precons & Saturday all day sessions! I will be presenting on Maintaining your SQL...
2014-05-23
660 reads
I’ve been working on a new presentation on testing using the tSQLt framework and was curious how other people are...
2014-05-23
794 reads
Hello Dear Reader! I'm about 32,000 feet in the air leaving St. Louis after a great Performance Tuning Workshop for...
2014-05-29 (first published: 2014-05-22)
2,419 reads
It is with a great pleasure that I am happy to share that today I have received news of being...
2014-05-22
157 reads
One of the things I’m trying to do now is include a link to a blog(ger) in the explanation. That...
2014-05-22
493 reads
By Steve Jones
This is timely, as I’m currently on a boat in the Adriatic taking a...
You can find the slides and SQL scripts for my session “Spice up your...
By SQLPals
How to Clear the SSMS Cache (SSMS 21 and Later) Updated...
Comments posted to this topic are about the item Risk Vs Reward, The never...
Comments posted to this topic are about the item Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
We have this code that sets some status values and then queries them using the CHOOSE() function in SQL Server 2025.
CREATE TABLE Status
(
StatusID INT,
StatusDescription VARCHAR(20)
);
GO
INSERT dbo.Status
(
StatusID,
StatusDescription
)
VALUES
(0, 'Uncategorized'),
(1, 'Active'),
(2, 'Inactive'),
(3, 'Temp');
GO
SELECT CHOOSE(StatusID, 'Unknown', 'Active', 'Inactive', 'Temporary')
FROM Status;
When the SELECT runs, what is returned? See possible answers