Kindle vs Library
Since I bought a Nexus 7 (two of them, I broke the first one) I’ve been interested to see if...
2013-06-17
626 reads
Since I bought a Nexus 7 (two of them, I broke the first one) I’ve been interested to see if...
2013-06-17
626 reads
First stop was Philadelphia, mostly because we scheduled our vacation to coincide with SQLSaturday #200, but also because we had...
2013-06-11
926 reads
My first time in Philadelphia (and in Malvern, the actual event location). I drove up Friday night for the speaker...
2013-06-07
797 reads
I’ll be attending the very first SQLSaturday held in Cocoa Beach on July 27, 2013, and doing a brand new...
2013-06-07
625 reads
This past week I took my kids on a train ride from Philadelphia to Washington DC. It was their first...
2013-06-07
620 reads
At the end of April I posted a bit on my change in plans and what I thought I’d be...
2013-05-28
795 reads
Last week I got the news that none of the four sessions I submitted for this year were accepted. Disappointing...
2013-05-22
684 reads
I shifted to Reader about a year ago mainly for the ability to access my feeds on multiple devices. I’ll...
2013-05-16
643 reads
If you work at a company with more than a 100 or so employees you probably get an email every...
2013-05-16
637 reads
This past weekend we took a mini vacation, along the way my daughter decided to play this song, which is...
2013-05-14
605 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