First Impressions
I was chatting with a friend recently who had been in turn chatting with a colleague about first impressions. The...
2012-02-21
977 reads
I was chatting with a friend recently who had been in turn chatting with a colleague about first impressions. The...
2012-02-21
977 reads
2012-02-21
172 reads
I was excited to receive the email on Friday that I’d been selected to present at SQLRally #2 in Dallas...
2012-02-20
608 reads
Next Wednesday I’ll be returning to MagicPASS to do a presentation on SQL security for developers. It’s an interesting topic,...
2012-02-17
684 reads
I’ve had my Dell E6500 for about 3-1/2 years now. I’ve recently upgraded the original (back when a SSD was...
2012-02-13
855 reads
The first Sarasota IT Pro Camp is being held on Saturday, February 18th 2012 from 9:00 am to 5:00 pm...
2012-02-13
628 reads
I’m hoping this year will be the year that PASS makes a substantial investment in tools – the online kind – for...
2012-02-11
984 reads
I drove over to Melbourne last night to the new home of Space Coast SQL at the Harris Institute for...
2012-02-10
730 reads
IDoneThis is a simple web site for tracking accomplishments. The premise is that you get a checkbox on the calendar...
2012-02-10
824 reads
Saw this post by Seth Godin on Stages of the Game. Interesting, I identified with it – I’m competitive, and competing...
2012-02-09
839 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