Software Engineering
Some see this as a misnomer, or even an oxymoron. Many countries don't allow "engineer" to be a title for...
2008-02-16
1,095 reads
Some see this as a misnomer, or even an oxymoron. Many countries don't allow "engineer" to be a title for...
2008-02-16
1,095 reads
User groups have to be about more than technical content if you want to sustain them over the long term,...
2008-02-14
493 reads
Someone sent me this note about a talk they'd had at their user group and the guest speaker mentioned the...
2008-02-14
2,266 reads
Recently I posted about making sponsorship work to lay out some ideas for events that are seeking sponsors. My friend...
2008-02-13
640 reads
My friend Mike Antonovich was kind enough to really go through my draft and provided some great feedback which I've...
2008-02-12
983 reads
I started working through some labs for my SQL Server 2008 class and one of the labs was on the...
2008-02-12
1,161 reads
I wrote this article on computed columns to support some of the teaching I do for my beginner to intermediate level...
2008-02-12
450 reads
I did end up pre-ordering the first DVD on SQL Server internals by SQL Server MVP and SQL Server internals...
2008-02-11
1,372 reads
This topic came up during the speaker reception at the South Florida Code Camp and while I've posted here and...
2008-02-11
808 reads
For those of you in Orlando our next meeting will be held on Feb 12 from 6-8 pm at the...
2008-02-11
516 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