Working on the Railroad
I work with a client that has an office about 25 yards from a train track and recently the railroad...
2011-02-14
613 reads
I work with a client that has an office about 25 yards from a train track and recently the railroad...
2011-02-14
613 reads
Packing for Mars by Mary Roach ($15 @ Amazon) is a ton of fairly interesting trivia about the space program, space...
2011-02-11
739 reads
Today we have a guest editorial from Andy Warren. Work can seem mundane and tedious at times, and today Andy asks you you remain engaged when the work isn't exciting.
2011-02-11
229 reads
One of the things I enjoy about work is seeing the various cultures that evolve. Some companies are rigid, some...
2011-02-10
1,370 reads
It’s been a few weeks since I wrote my early thoughts on my goals for this year, and you can...
2011-02-09
796 reads
I saw an article in American Woodworker by Alan Lacer about making wooden doorstops and decided to try one. You...
2011-02-07
524 reads
We’re doing weekly calls for the ERC (election review committee) and we seem to be making some progress. This past...
2011-02-03
662 reads
Linked in sent me an email saying that an astounding 209 of my connections changed jobs in 2010, out of...
2011-02-03
542 reads
I don’t generally post bits of this and that, but I’ve accrued a few things that I wanted to share,...
2011-02-02
605 reads
In November/December HQ requested that the Board to send in suggestions for possible sites for the 2013 PASS Summit. I...
2011-02-01
1,573 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...
Nitazoxanide 500 mg Buy Online is a search term used by people looking for...
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...
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