A Reason To Smile! - Deep Dives II
Over this past weekend, SQL MVP Kalen Delaney sent an inspiring note to the MVP email thread, and I wanted to...
2015-01-20
1,973 reads
Over this past weekend, SQL MVP Kalen Delaney sent an inspiring note to the MVP email thread, and I wanted to...
2015-01-20
1,973 reads
Today:
Tuesday, January 13, 2015 is the 62nd entry and first T-SQL Tuesday
of the year 2015, and I am honored to...
2015-01-16 (first published: 2015-01-13)
8,776 reads
Greetings ALL and Happy New Year 2015! I wish everyone an excellent year ahead, and
that 2015 will bring peace and...
2015-01-06
5,936 reads
Just wanted to blog a quick update on SQLSaturday#380 in NYC, happening on May 30, 2015. As you are hanging...
2014-12-24
1,296 reads
Tis the Season to Be Jolly, as well as giving,
and T-SQL Tuesday’s timely topic on giving back to the SQL...
2014-12-09
1,788 reads
November 25, 2014 - Good
news in Gotham! Well you asked for it! You
wanted it! You waited for it! And now it's...
2014-11-25
1,534 reads
Recently, I caught a blog link on LinkedIn, of one SQL
Server professional talking about his experience speaking at a SQLSaturday,...
2014-11-24
890 reads
So, I've finally decided to draw a line in the sand. I've been doing some writing lately. The radio silence...
2014-10-15
1,853 reads
There
are a number of ways to collect basic information about SQL Server, its
version, edition and other top-level properties. What is...
2014-07-22 (first published: 2014-07-17)
11,346 reads
While the World
Cup was still going on, and the folks in the USA had a real reason to root
for the...
2014-07-02
1,207 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