Review: Gamma Seal Lids
Last weekend I needed to go to Home Depot to get a five gallon bucket and a lid so we...
2011-11-22
713 reads
Last weekend I needed to go to Home Depot to get a five gallon bucket and a lid so we...
2011-11-22
713 reads
Highest Duty, My Search For What Really Matters by Chesley Sullenberger is the autobiography of the pilot who landed Flight...
2011-11-21
900 reads
For a long time a core piece of my ‘style’ has been to wander the halls a couple times a...
2011-11-18
614 reads
A while back I posted about Culture Posters, a technique for trying to build your culture by writing down the...
2011-11-17
822 reads
When I’m managing I tend to absorb the stress that my teams feel. It’s my job to help them be...
2011-11-17
639 reads
One of the mistakes I see a lot is teams failing to identify risks early and failing to leave time...
2011-11-16
487 reads
I’ve had jobs where I might have one meeting a week, I’ve had a few with some type of daily...
2011-11-15
747 reads
Here is something else that started in Florida (doesn’t everything?), a series of events along the lines of Code Camp...
2011-11-14
586 reads
The work I’m doing right now has nothing to do with SQL Server, and while it deals with technology, it’s...
2011-11-14
698 reads
The Merriam-Webster site has an interesting list of Top 10 Lists, ranging from commonly confused words to things you didn’t...
2011-11-14
649 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