Do You Have Other Opportunities Open?
Imagine you’re talking with a recruiter about a position that seems like a good fit and during that conversation they...
2010-10-27
621 reads
Imagine you’re talking with a recruiter about a position that seems like a good fit and during that conversation they...
2010-10-27
621 reads
With SQLSaturday #49 we tried something I call micro-sponsors, charging $5 for a blogger to sponsor the event. It’s a...
2010-10-26
996 reads
I don’t comment as often as I should on blog posts. I say should because as a blogger I know...
2010-10-25
617 reads
Bill Graziano posted our 2011 budget today. This runs from Jul 1, 2010, through Jun 30, 2011. I hope you’ll...
2010-10-22
678 reads
One more from the ‘new book’ shelf at the library, All Things at Once is an auto biography of Mika...
2010-10-22
713 reads
So far SQLSaturday Tampa will be the first SQLSaturday of 2011, and the first one I’ll be attending in 2011...
2010-10-22
584 reads
Today we have a guest editorial from Andy Warren that talks about ways to enjoy life without spending a lot of money. Some of these might even be great team building ideas.
2010-10-21
199 reads
I was just writing a thank you message to our speakers for SQLSaturday #49 and wanted to write down a...
2010-10-21
592 reads
I wrote Cheap Fun after buying a really cheap – $1 – wood airplane kit at the store for the kids. Amazing...
2010-10-21
741 reads
Please take a few minutes to review the September 2010 minutes (login required). We just had our October meeting on...
2010-10-20
666 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 Risk Vs Reward, The never...
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