Our SQL Server 2017 Administration Inside Out fun author survey
I was honored to be on the author team of the new SQL Server 2017 Administration Inside Out book by...
2017-12-20
805 reads
I was honored to be on the author team of the new SQL Server 2017 Administration Inside Out book by...
2017-12-20
805 reads
Quite a few of you have read or attempted the previous puzzle SQL Puzzle 1: Magic Squares
As a quick reminder, when...
2018-01-05 (first published: 2017-12-19)
1,680 reads
For testlab purposes, I often have a group of Azure VMs to manually spin up/spin down at once. I've had...
2017-12-19
383 reads
I recently went to our local pharmacy to pick up some prescriptions. There was one for my boy and one...
2017-12-19
337 reads
I wanted to break out my comfort levels and do something different from Azure SQL Database or straight SQL Server....
2017-12-19
591 reads
In this module you will learn how to use the Text Filter Custom Visual. This visual allows you to filter...
2017-12-19
629 reads
While getting a new workstation is usually nice, reinstalling all your softwares and settings is definitely not the most pleasant...
2017-12-19
904 reads
It wasn’t so long ago that the first day of the month was the most common trigger event for updating...
2017-12-19
405 reads
Recently I was discussing with Peter Saverman whether it would be possible to take some database tables that look like...
2017-12-19
8,502 reads
Recently I was discussing with Peter Saverman whether it would be possible to take some database tables that look like this:
And output them so that the Cars and Toys...
2017-12-19
120 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