December Event Reminder
We are now only two days away from the biggest event of the week!! More accurately though, it is the BIGGEST event for the Las Vegas chapter of...
2011-12-06
8 reads
We are now only two days away from the biggest event of the week!! More accurately though, it is the BIGGEST event for the Las Vegas chapter of...
2011-12-06
8 reads
We are now only two days away from the biggest event of the week!!
More accurately though, it is the BIGGEST...
2011-12-06
659 reads
This month’s T-SQL Tuesday is being hosted by Allen White (blog | @SQLRunr ). The topic: Share your T-SQL tips and tricks. ...
2011-12-06
1,257 reads
This will be a series of handy hints for people that know SQL and are frustrated by Excel. I am...
2011-12-06
2,125 reads
Welcome to the third of a few sponsor interview posts from SQL Saturday 99. After reading Arnie Rowland’s (Blog | @ArnieRowland)...
2011-12-06
734 reads
Judging any contest is difficult, as you want to be as fair as possible. So coming up with the final...
2011-12-06
655 reads
http://www.flickr.com/photos/paulhagon/369576792/I want to start this blog out with a Warning Dear Reader. The technique that I am going to describe...
2011-12-06
815 reads
For me the Wednesday before Thanksgiving was a quiet day at work. It was one of those ‘everyone is leaving...
2011-12-06
621 reads
Today, the final 15 competitors were announced at the DBA in Space website. To get into the final 15, the...
2011-12-06
950 reads
Use Actions!
Your user wants a summary report, containing sales for calendar year, for example. When the user clicks on the...
2011-12-06
951 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