SQL Saturday RVA recap
Wow, what a month. On March 22, 2014, the SQL Saturday train came into Richmond VA (RVA). I was one...
2014-03-28
902 reads
Wow, what a month. On March 22, 2014, the SQL Saturday train came into Richmond VA (RVA). I was one...
2014-03-28
902 reads
Today we have another update for an age old script on this site. You can find the last update to the script here. This time we have a bit...
2014-03-28
12 reads
Today we have another update for an age old script on this site. You can find the last update to...
2014-03-28
798 reads
I write editorials once or twice a month for SQLServerCentral and have fallen out of the habit of mentioning them...
2014-03-28
538 reads
I’ve volunteered to lead the marketing effort for SQLSaturday Orlando this year. Broadly speaking that means drive attendance to the...
2014-03-28
504 reads
My latest question is live today – Can’t See The Forest For the Logins is worth 2 points if you’re playing...
2014-03-28
441 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-03-28
477 reads
About 200 miles east of Baton Rouge there lies a beachside town called Mobile, AL that will settle down long...
2014-03-27
749 reads
Recently I heard a few people that note that they were really hoping the next update for Windows 8 will...
2014-03-27
725 reads
All PASS Summit 2012 recordings are now available for free to all PASS members (201 of them!). To view, log on...
2014-03-27
806 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