Getting Better at Time Management
One of the things I took from my overall performance last year is I need to get better at time...
2008-01-03
651 reads
One of the things I took from my overall performance last year is I need to get better at time...
2008-01-03
651 reads
Steve finally got the bugs worked out of the recent blog software upgrade and RSS should be available again. Note...
2008-01-03
462 reads
Just saw that Bayer posted a note confirming that he is a 2008 MVP. I met Bayer a couple years...
2008-01-02
191 reads
Google has - and continues - to do some amazing things. It's easy to be awed by their products and their infrastructure,...
2008-01-01
467 reads
Steve is a 2008 SQL Server MVP. Well deserved, I can think of few people more visible in the community...
2008-01-01
647 reads
I awoke this morning, rather later than usual after a small get together with some friends, and came down to...
2008-01-01
713 reads
So my DVD drive in the new laptop appeared to be dead. It didn't appear in the "Computer" list with...
2007-12-28
1,477 reads
I purchased The Exceptional Presenter recently as part of my professional development spending. I currently work primarily as a trainer...
2007-12-27
1,505 reads
I don't have a URL handy for it, but in the latest print issue of PC Mag they announced changing...
2007-12-26
1,407 reads
As a user group leader I see new products as a chance to make sure our members know about the...
2007-12-25
1,496 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