Assimilated
Maybe I'm succombing, maybe I'm lazy, most likely I don't want to mess with it.
I found some instructions for nLite,...
2007-12-25
1,498 reads
Maybe I'm succombing, maybe I'm lazy, most likely I don't want to mess with it.
I found some instructions for nLite,...
2007-12-25
1,498 reads
My new laptop came with Vista Home and I messed with it for awhile last night, but I didn't see...
2007-12-24
1,463 reads
My new laptop showed up today at my desk. Actually it probably showed up yesterday, but since I never went...
2007-12-23
1,540 reads
I finally sat for 70-431 on Thursday. I know, I am at least a year behind everyone else. There is...
2007-12-22
1,382 reads
I've put this off for a while, but I needed a break from the routine and I'm starting to get...
2007-12-20
1,396 reads
Someone posted a question about what should they try to learn for an interview coming soon, but the company was...
2007-12-20
1,550 reads
We had our final meeting of the year last night, minutes posted here. Pretty good turn out, 22 total. And...
2007-12-19
1,448 reads
I'm a fan of lists so that I stay on track rather than trying to remember all things at the...
2007-12-18
1,437 reads
Usually I'm the one working on my podcasts and starring in them. However I got invited to participate in and...
2007-12-18
1,442 reads
As an owner of a small business one of the constant struggles is time management, and more importantly, finding time...
2007-12-17
1,498 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