PASS Summit 2014 Pre-Conference Seminar
I’m putting on a pre-conference seminar (also known as a pre-con) at the PASS Summit this year. I’m really honored...
2014-09-16
616 reads
I’m putting on a pre-conference seminar (also known as a pre-con) at the PASS Summit this year. I’m really honored...
2014-09-16
616 reads
I’ve been attempting to expand my reach to get back to my roots in development. I’m doing this because I...
2014-09-15
696 reads
I’ve put together a new Curah! of links to some of the better articles on SQL Server Statistics, specifically those...
2014-09-15 (first published: 2014-09-10)
7,399 reads
I’m learning how to speak German. Interestingly enough, you don’t start off reading dissertations. Instead, you begin by learning the...
2014-09-09
833 reads
No, this is not about politics. It’s about your WHERE clause… and your JOIN criteria… and your HAVING clause. It’s about a...
2014-09-08 (first published: 2014-09-03)
6,775 reads
This month I’m very grateful because I was given the opportunity to present at DevLink in Chattanooga. I got to...
2014-09-05
531 reads
I don’t mind saying that amyotrophic lateral sclerosis (ALS), also known as Lou Gehrig’s disease, scares me. A degenerative disease...
2014-08-21
1,239 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
A discussion that I’ve frequently had with organizers of SQL Saturday events, our own people here at Red Gate, authors,...
2014-08-19
573 reads
I’m excited to able to say that I’ve been given the opportunity to put on a full day workshop at...
2014-08-14
818 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