Microsoft Store vs Apple Store
Yesterday I went to the new Microsoft store at Florida Mall, mostly out of curiosity and something to do at...
2012-08-23
817 reads
Yesterday I went to the new Microsoft store at Florida Mall, mostly out of curiosity and something to do at...
2012-08-23
817 reads
I’m writing this Friday evening in Cleveland at the hotel, relaxing after the speaker dinner and getting ready for SQLSaturday...
2012-08-22
706 reads
I like a good status report. It may contain a few sentences or a page full of data and gauges,...
2012-08-20
4,007 reads
My friend Steve Jones and I have talked every week for a long time, close to ten years now. On...
2012-08-18
976 reads
24 Hours of PASS (24HOP) has been around a few years now, but this will be my first time participating...
2012-08-16
570 reads
I’ve been reading about wooden hand planes lately (as opposed to hand planes made of metal that plane wood) and...
2012-08-14
893 reads
I’m flying in on Sunday again this year, arriving in time for lunch, and looking forward to the luxury of...
2012-08-14
619 reads
My 2011 version of Live Writer didn’t seem to want to embed a Vimeo video, so I checked for an...
2012-08-14
532 reads
Lately I’ve hit a couple blogs that wanted me to enter some kind of credentials before I could post a...
2012-08-13
379 reads
We had 45 speakers submit sessions this year. Sticking to our tradition here in Orlando, we accepted as many speakers...
2012-08-13
351 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