Building the SQLSaturday Orlando Marketing Plan-Part 28
Today at lunch I looked at LinkedIn advertising. I only capture the last part to share here, but you put...
2014-08-01
584 reads
Today at lunch I looked at LinkedIn advertising. I only capture the last part to share here, but you put...
2014-08-01
584 reads
Photo credit – Travis
Ever go digging through your backyard for dinosaur bones? Maybe not, but it’s worthwhile from time to time...
2014-08-01
577 reads
Speaker of the Month is now officially one year old.
I went back and reread my first post. The goals were...
2014-08-08 (first published: 2014-08-01)
7,055 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-08-01
319 reads
Short blog post this time as Website Pulse contacted me a few weeks ago with a few questions about working...
2014-07-31
1,186 reads
Recently an incident came across my desk where an end user was receiving an error trying to retrieve some records...
2014-07-31
2,500 reads
This story began as they almost always do - with a page at 4am local time...
--
'Alert: SQL Failed Jobs on InstanceName...
2014-07-31
10,847 reads
I am taking a slight deviation from the usual type of posts that I share. This time, I just want to share a quick and easy fix that I...
2014-07-30
10 reads
I am taking a slight deviation from the usual type of posts that I share. This time, I just want...
2014-07-30
1,404 reads
If you’re in Seattle the week of November 2 – say, for example, you’re attending the PASS Summit that week – consider...
2014-07-30
1,039 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