Some Thoughts About Sponsors at SQLSaturday
I think it was because I had just received an email about sponsoring a SQLSaturday that had me thinking about...
2013-02-12
604 reads
I think it was because I had just received an email about sponsoring a SQLSaturday that had me thinking about...
2013-02-12
604 reads
Last year LinkedIn rolled out a new feature called endorsements, not to be confused with recommendations. Recommendations are free form...
2013-02-11
780 reads
My friend Don Gabor is presenting a two hour seminar titled “Mastering the Art of Conversation and Making Business Contacts”...
2013-02-09
773 reads
I’m planning to attend SQLSaturday #200 in Philadelphia on June 1, 2013. Number 200! This will be my first trip...
2013-02-09
608 reads
Ever since it was announced I’ve been ambivalent about the PASS Business Analytics Conference. I believe PASS should look for...
2013-02-09
852 reads
Quite a few years ago my first job in the military was driving a tracked vehicle, a variant of the...
2013-02-07
767 reads
I was catching up on reading today and saw that Instructables had a how-to on “tattooing” a banana, also called...
2013-01-28
911 reads
Compromise is one of those things that makes the world work. I can’t say I’ve always been good at it....
2013-01-28
785 reads
Here’s a quick plug for The Missing Windows 8 Instructional Video. I watched it and learned quite a few things,...
2013-01-27
743 reads
OPASS meetings are held at Logans Roadhouse in Sanford now, I think the fourth location over the past couple years,...
2013-01-21
700 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