500+ Facebook Like
Thanks every one for loving me, joining me & providing you extreme support.
I am very happy to share that we reach...
2015-06-11
597 reads
Thanks every one for loving me, joining me & providing you extreme support.
I am very happy to share that we reach...
2015-06-11
597 reads
In the on-premises world, when we install a SQL Server on our own servers, we decide on SQL Version (2012, 2014….), Edition (Standard, Enterprise,...
2015-06-10
23,153 reads
Its pretty often that you have to sit down at a SQL Server and need sort out what the backup situation is. One of the first things that I...
2015-06-10
19 reads
Its pretty often that you have to sit down at a SQL Server and need sort out what the backup...
2015-06-10
1,495 reads
This was strange. I noticed a new icon in the taskbar today. When I hovered over it, I saw this:
I...
2015-06-10
905 reads
It’s time for this week’s weekly blog and twitter round-up for last week, it would be better timed if I...
2015-06-10
601 reads
Reading Time: 1 minutesGoing to get Digby access to a little more water to rest...
The post A Short Hiatus appeared...
2015-06-10
379 reads
He's baack! If you missed the first presentation in March, due to inclement weather, and you are local, or in...
2015-06-10
815 reads
I bring you yet another installment in the monthly meme called T-SQL Tuesday. This is the 67th edition, and this time we have been given the opportunity to talk...
2015-06-10
9 reads
I bring you yet another installment in the monthly meme called T-SQL Tuesday. This is the 67th edition, and this...
2015-06-18 (first published: 2015-06-10)
1,911 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