SQL Family – an Update
At the beginning of the month, we had a Meme Monday on the topic of SQL Family. I had a few things to say about the SQL community back...
2011-11-21
13 reads
At the beginning of the month, we had a Meme Monday on the topic of SQL Family. I had a few things to say about the SQL community back...
2011-11-21
13 reads
At the beginning of the month, we had a Meme Monday on the topic of SQL Family. I had a...
2011-11-21
667 reads
We will walk through creating a policy to evaluate the status of “Auto Create Statistics” on our server named “File2”. ...
2011-11-21
1,397 reads
In the past week, I’ve had a number of requests for a list of the WordPress plug-ins that I use. ...
2011-11-21
1,149 reads
A conformed dimension is a dimension that has the same meaning to every fact with which it relates. Conformed dimensions allow...
2011-11-21
3,527 reads
SQL Server 2012 Release Candidate 0, Time To Get Serious
With the release of RC0 Microsoft has signaled that the release...
2011-11-21
1,535 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
Part 1 of Question 2—The question.Part 2 of Question 2—The follow up to the question.This is a continuation of my...
2011-11-21
647 reads
Very short informational post.
If you’re like me and you’ve been running the public Client Technology Preview (CTP3) of SQL Server...
2011-11-21
2,020 reads
This is a bit of ramble. At about 2:15AM November 21st, 2011 my dad, Arthur Corbett, went home to be with his Lord and Savior, Jesus Christ. I...
2011-11-21
28 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