Speaking at SQL Saturday #389 – Huntington Beach
I’ll be traveling to CA next month for SQL Saturday #389 – Huntington Beach as well as a Red Gate DLM...
2015-03-23
915 reads
I’ll be traveling to CA next month for SQL Saturday #389 – Huntington Beach as well as a Red Gate DLM...
2015-03-23
915 reads
Today I’d like to announce that I have been selected as a PernixPro for 2015! It’s a program similar to...
2015-03-23
413 reads
This post is part of a series on this blog that will help me, and hopefully you, pass exam 70-463: Implementing...
2015-03-23
1,090 reads
Recently the last day to submit a session for the 2015 Pass Summit rolled around. I mention this because I...
2015-03-23
701 reads
There is a flat file processing issue I’ve run into a number of times over the years, and it’s come...
2015-03-23
2,447 reads
On April 18 2015 I will be speaking at SQLSaturday #376 in Budapest!
I will be speaking about one of my...
2015-03-23
558 reads
My good friend Ed Leighton-Dick has created a great new challenge, adapted from a challenge issued by Seth Godin back...
2015-03-23
466 reads
TL;DR – In April, I’m challenging myself to write (and publish!) here regularly, and I’m extending an open challenge to other new...
2015-03-22
344 reads
SQL Saturday Baton Rouge 2015 is coming up on August 2 at LSU, register today!
Email or instant message your friends, post...
2015-03-22
762 reads
As part of my organiser role for SQLSaturday Exeter (Training Day Information here and Saturday Information here) I needed to...
2015-03-31 (first published: 2015-03-21)
6,922 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