SQL Saturday Nepal 2017
I had the honor to visit Nepal and participate in SQL Saturday Nepal 2017. You can visit the event website...
2017-12-23
504 reads
I had the honor to visit Nepal and participate in SQL Saturday Nepal 2017. You can visit the event website...
2017-12-23
504 reads
Dear All,
Earlier this year in August, I had the privilege of speaking at Data Platform Summit 2017 at Bangalore. As...
2017-12-23
412 reads
Continuing on the series on Adaptive Query Processing covered overhere, this post would cover what happens to adaptive joins when...
2017-12-23
558 reads
Despite it being new, it seems there are a handful of "facts" already published about it that may or may not be accurate. Due to that, I want to...
2017-12-22
15 reads
I have been working on this article for far longer than one might think is necessary for something of this...
2017-12-22
123 reads
I have been working on this article for far longer than one might think is necessary for something of this...
2018-01-04 (first published: 2017-12-22)
2,031 reads
There have been a number of enhancements to Hadoop recently when it comes to fast interactive querying with such products...
2017-12-22
106 reads
There have been a number of enhancements to Hadoop recently when it comes to fast interactive querying with such products...
2017-12-22
1,764 reads
One of the most underutilized assets in SQL Server Management Studio is the SSMS project. Within Management Studio, one can...
2017-12-22
548 reads
Introduction
Hello everybody! Welcome back! One of my favorite features in Azure SQL DBaaS is Failover Groups. I have been working...
2017-12-22
170 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 Risk Vs Reward, The never...
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...
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