Help me present at GroupBy: review my abstract
I’ve submitted a session proposal to the free, online GroupBy conference. Voting will open for sessions soon, but before then, you can help me out by reading my abstract....
2018-09-27
17 reads
I’ve submitted a session proposal to the free, online GroupBy conference. Voting will open for sessions soon, but before then, you can help me out by reading my abstract....
2018-09-27
17 reads
This article will provide a deep dive into the SQL UNION operator, describing its many uses along with examples and...
2018-09-27
788 reads
Did you know that SQL Saturday Charlotte is just a few weeks away on October 20, 2018? This will be...
2018-09-27
267 reads
Time for a fun post, I have been working on a mini-project using technology from Microsoft Azure to hook into...
2018-09-27
417 reads
This blog post is about a situation where I went to push my latest local changes to my git repository...
2018-09-27
823 reads
I’m a big fan of Azure Site Recovery for Disaster Recovery and was glad to attend the Ignite session today...
2018-09-26
73 reads
Intro
In the last blog I showed how important statistics are for CCI bulk load even on small tables. This time...
2018-09-26
157 reads
My previous blog posts, Azure Outage Post-Mortem – Part 1 and Azure Outage Post-Mortem Part 2,made some assumptions based upon limited information coming from...
2018-09-26
84 reads
Yes, you’re reading that right. A book not about the Microsoft BI stack. At a project, Pentaho Data Integration (PDI)...
2018-09-26
484 reads
With Microsoft’s Ignite conference this week a lot of new features are being advertised all over the internet. Most likely if you are following along you have heard of...
2018-09-26
85 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