SQLSaturday in Wheeling WV and Birmingham, AL
John Baldwin and Morgan Smith are going to repeat in Birmingham this year on Mar 27. They’ve got a great...
2009-12-15
601 reads
John Baldwin and Morgan Smith are going to repeat in Birmingham this year on Mar 27. They’ve got a great...
2009-12-15
601 reads
I had a question from a member of our local user group about options to get a legal copy of...
2009-12-15
745 reads
My friend Ryan Duclos just sent me a reminder about the upcoming Alabama Code Camp on January 23, 2010, in...
2009-12-14
691 reads
In Update #20 I mentioned that I was hoping to get the chapters portfolio for 2010. A few weeks have...
2009-12-14
728 reads
We started off our end of year meeting with our standard networking meet and greet. It’s going smoother, people are...
2009-12-13
565 reads
I’m closing in on vacation – finally – and one of the things I’ll have in the back of my head while...
2009-12-13
591 reads
Assuming no major problems at work, I’m heading to the South side of town the afternoon of Dec 14, 2009...
2009-12-11
394 reads
I continue to read biographies without a real direction, stumbling across an interesting event in one and following that to...
2009-12-10
323 reads
A guest editorial from Andy Warren today looks to inspire you with a few thoughts about how you might force yourself to grow a little next year.
2009-12-10
128 reads
It’s a compilation of the best articles over the past year or so, all pushed into a nice PDF that...
2009-12-09
404 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