Getting ready for the third “Industrial Revolution”: Database 2010-2015
I searched the internet for “connect and forget”. Wonderbox.net offer is described as a...
2010-10-10
85 reads
I searched the internet for “connect and forget”. Wonderbox.net offer is described as a...
2010-10-10
85 reads
10 years ago IT professionals considered database technology “mature” and analysts were preparing to...
2010-09-13
59 reads
“The information age is an idea that the current era will be characterized by the ability of...
2010-08-22
57 reads
“Content is king” is the golden rule of the SEO. The semantic web is all about data. Any web...
2010-06-25
63 reads
Microsoft is associated almost exclusively with Windows and Office. Unfortunately a lot more...
2010-05-15
58 reads
I just finished reading “The next wave of technologies” by Phil Simon. A great read! It proposes a...
2010-04-18
47 reads
The 2008 trending topic everyone was talking about was the Web 2.0. On October 23 that same year,...
2010-04-02
78 reads
2001-01-01
88 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