VMworld 2014 Is Next Week
Can you believe that this year’s VMworld conference is just around the corner? It’s next week – August 24 – 28 – at...
2014-08-20
627 reads
Can you believe that this year’s VMworld conference is just around the corner? It’s next week – August 24 – 28 – at...
2014-08-20
627 reads
I’m continuing to experiment with the messaging. Without A/B testing (and maybe even with, given the small list size) it’s...
2014-08-20
511 reads
I’ve been thinking about this topic for a few weeks, maybe longer. It’s based on the three years I served...
2014-08-20
654 reads
If you haven’t already, please read Denise McInerney’s post about why PASS no longer stands for the Professional Association for...
2014-08-20
664 reads
I was looking to write a new test with the tsqlt framework recently. I wanted to isolate a stored procedure’s...
2014-08-20
1,243 reads
Being a DBA and working with various teams, I have become accustomed to deploying SSIS packages. I’ll even go back...
2014-08-20
600 reads
I read with a bit of despair this post by Denise McInerney this morning. Going forward, it’s just “PASS”. Somehow...
2014-08-20
809 reads
As companies go, Red Gate is a little different. That is readily apparent in our tools and the philosophy behind...
2014-08-20
758 reads
Two years ago today I began my blog with a post about the DEFAULT keyword. I set out with the...
2014-08-20
952 reads
It’s official, we have a couple 2014 SQL in the City events scheduled, covering two countries this fall. Both events...
2014-08-19
1,334 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