MicroTraining: Performance Tuning Checklist
I’ve been playing a lot with Google+ and the Hangouts there. I love them. I think they’re opening up a...
2011-09-21
1,015 reads
I’ve been playing a lot with Google+ and the Hangouts there. I love them. I think they’re opening up a...
2011-09-21
1,015 reads
I was presenting on execution plans when another question came up that I didn’t know the answer to immediately. Yes,...
2011-09-20
1,357 reads
You know I share what feedback I get from conferences. I don’t usually get feedback from users groups (well, I...
2011-09-16
865 reads
I have to say, I only recently noticed this on a tool tip:
and this in the property sheet:
The bad news...
2011-09-15
1,695 reads
Have to complete my assignment from the Rockstar this month since I’ve missed the last several (he gets all weepy,...
2011-09-06
608 reads
I’ve finished my 3rd book as part of my year long commitment to read and review professional/personal development books. I...
2011-08-30
769 reads
How do you define an expert? My personal definition: An expert is the person that is a chapter ahead of...
2011-08-22
1,251 reads
I just finished hosting my third hangout on Google Plus. I’ve also attended one hosted by Andy Leonard (blog|twitter) and...
2011-08-11
1,385 reads
I have Denali installed on a virtual machine on my laptop and I’m working through evaluating it. Actually, I’m working...
2011-08-10
670 reads
A friend of mine recently got his first smart phone, an Android. My wife has also recently moved into the...
2011-08-08
776 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