Up Coming Speaking Events
Hello Dear Reader! We are 2 months into 2014 and the New Year is off to a busy start. This...
2014-02-21
737 reads
Hello Dear Reader! We are 2 months into 2014 and the New Year is off to a busy start. This...
2014-02-21
737 reads
The Toyota FJ40 Land Cruiser has been out of production for 26 years, but you wouldn’t know it when talking...
2014-02-21
714 reads
On February 17, 2014, Microsoft released SQL Server 2008 R2 SP2 CU11, which is Build 10.50.4302. This cumulative update has...
2014-02-21
1,400 reads
Photo credit – Jenn and Tony Bot
Sometimes old stuff is just as cool as new stuff. Over the past few years,...
2014-02-21
767 reads
Tom Campbell is a wildlife cinematographer by trade and his incredible ’77 Toyota Land Cruiser FJ40 was built to assist...
2014-02-21
651 reads
I’m looking forward to the trip to Tampa for SQLSaturday #273 this weekend. I’m driving down this afternoon to beat...
2014-02-21
649 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2014-02-21
307 reads
Toyota Land Cruiser Specialists (TLC) has taken its restoration business a step further and started offering its own line of...
2014-02-21
843 reads
Live notes from the meeting.
Attendance is low tonight, about 10 people (though it was well advertised, I got quite a...
2014-02-21
701 reads
Now available are Audit and Control Management Server (ACM), and Discovery and Risk Assessment, which are both designed to help...
2014-02-21
601 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