It’s OK To Eat Alone
There’s a lot to be said for the philosophy of Never Eat Alone, using meals as a great time to...
2012-05-24
768 reads
There’s a lot to be said for the philosophy of Never Eat Alone, using meals as a great time to...
2012-05-24
768 reads
I’m part of the team putting together SQLSaturday #151 in Orlando this year, and one of the things Kendal Van...
2012-05-23
730 reads
I watched the documentary on Nova about the IBM project to build Watson, a computer that could play Jeopardy. The...
2012-05-23
846 reads
I received an email from LinkedIn suggesting that I might find these groups useful:
I’m sure those map back to someone...
2012-05-22
730 reads
I saw this on the Boing Boing feed yesterday, Little Free Library is a project to try to build 2500...
2012-05-18
847 reads
One of the things I’ve learned from running events is to set expectations. If you’re going to provide coffee don’t...
2012-05-18
586 reads
I was chatting with a friend recently and he said he could never blog the way I do. Which way...
2012-05-18
590 reads
NELL (Never Ending Language Learning) is a computer system that is trying to learn to read the web. Couple things...
2012-05-17
718 reads
Here are some things I’ve run across in the past few weeks you may find interesting:
FailCon. Billed as a one-day...
2012-05-14
581 reads
It was interesting to watch an event that started 17 months ago with Dallas, Nashville, and Denver submitting applications to...
2012-05-12
1,163 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 Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
Comments posted to this topic are about the item The DBA is Dead! Long...
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