What Did You Learn at PASS?
PASS has a contest going to capture some of the great stories we know are out there - the ones that...
2009-06-08
341 reads
PASS has a contest going to capture some of the great stories we know are out there - the ones that...
2009-06-08
341 reads
A little further off topic than usual, but this is one of the few tools that I've purchased that I...
2009-06-04
449 reads
Ran across this a while back and just getting to it, Seatguru is a site that lets you figure out...
2009-06-03
395 reads
I'm driving over tonight to spend a long weekend in Pensacola (6-7 hour drive from Orlando) for their first SQLSaturday,...
2009-06-03
471 reads
I flew up to Birmingham Friday for SQLSaturday #7 organized by John Baldwin from Steel City SQL and a lot...
2009-06-01
716 reads
Ken Starnes from the Portland group will be having their first event on June 6th. I like the way they've...
2009-06-01
303 reads
I bought Real Leaders Don't Do Powerpoint by Christoper Witt ($15 at Amazon) on a trip, Powerpoint catching my eye...
2009-05-28
1,752 reads
One of the labs I frequently do with students is to design a database for a training business, something which...
2009-05-27
1,463 reads
I'm flying up Friday afternoon to participate in SQLSaturday #7 which is being led by John Baldwin and his team...
2009-05-26
1,358 reads
Wes is a friend acquiring via networking and community involvement - another success story! He's based in Tampa and has been...
2009-05-25
566 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