An Artist I’m Not!
One of the gifts my Mom gave my children was a ‘Painting Rocks’ kit. Great marketing, six medium sized rocks,...
2011-01-07
559 reads
One of the gifts my Mom gave my children was a ‘Painting Rocks’ kit. Great marketing, six medium sized rocks,...
2011-01-07
559 reads
Last week I wrote about my goals for last year and some frustration at having to make some trade offs...
2011-01-06
587 reads
I can’t remember where I heard this recently, but it’s been stuck in my head as one of those bits...
2011-01-05
631 reads
The schedule is posted for SQLSaturday #62 coming to Tampa on January 15, 2011. I don’t have a presentation on...
2011-01-04
559 reads
Today we have a guest editorial from Andy Warren looking at the future of cloud computing and SQL Server.
2011-01-03
199 reads
I’m writing this the day before Xmas, trying to finish up a bunch of odd tasks before the holiday weekend...
2010-12-30
1,452 reads
Bury My Heart at Conference Room B: The Unbeatable Impact of Truly Committed Managers by Stan Slap ($15 @ Amazon) is...
2010-12-29
746 reads
My friend Malathi (Mala) Mahadevan has chaired the Louisville PASS Chapter for the past couple years, and will be heading...
2010-12-27
986 reads
Today we have a guest editorial from Andy Warren that asks you to look forward to the next year and think about your future.
2010-12-27
260 reads
This time the plan was to go to Arby’s because it was close and my friend Rob had coupons for...
2010-12-23
564 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