Off-topic: The Citadel Honors Class That Did Not Graduate
The purpose of The Citadel, the Military College of South Carolina, is to prepare South Carolina's citizen soldiers. It is...
2008-05-02
882 reads
The purpose of The Citadel, the Military College of South Carolina, is to prepare South Carolina's citizen soldiers. It is...
2008-05-02
882 reads
A minor change for the podcasts next week. I got my wireless microphone, and I'm working with it a bit...
2008-05-02
1,926 reads
Including the parameter values to the physical report so they get printed with the business data is a best practice...
2008-05-02
568 reads
I thought they were, but I've had a bit of a debate in the forums with someone. There was a...
2008-05-02
710 reads
If you've read my blog much you'll know that I'm deeply involved in trying to figure out how to build...
2008-05-01
546 reads
I've never really been a big fan of many of the aggregation sites. As such I have never really used...
2008-05-01
717 reads
One of the things that I made a conscious effort to do last summer was make a regular effort to...
2008-05-01
732 reads
I grabbed Pro SQL Server 2005 High Availability by Allan Hirt recently to add to the library and I've been...
2008-04-30
1,374 reads
Raffle tickets have become a mainstay of our events, making it easy to handle the large volume of items donated...
2008-04-29
1,621 reads
I've never been much of a mentor to people, partially not having the chance, partially focusing too much on myself,...
2008-04-29
2,038 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