I’m on Twitter! @AdamKreul
I’m just a little late to the party, but no time like the present, right? I plan to be very...
2014-02-15
640 reads
I’m just a little late to the party, but no time like the present, right? I plan to be very...
2014-02-15
640 reads
A few weeks ago I wrote a post about comparing the contents of entire tables in Power Query, and a...
2014-02-15
769 reads
A simple query in Hive reads the entire dataset even if we have where clause filter. This becomes a bottleneck...
2014-02-15
578 reads
Facebook graph is the primary way for external apps to talk with Facebook. This allows you to get all the...
2014-02-15
532 reads
The first time I had an Islay single malt, my mind was blown. In my first foray into the world...
2014-02-15
454 reads
This is my blog. Here, I’d like to say "Hello" and wish myself many posts. I’ll be mainly posting about...
2014-02-15
152 reads
Today I watched DATAVIZ YOU THOUGHT YOU COULD NOT DO WITH SSRS by Jason Thomas. The intro felt long, but...
2014-02-14
756 reads
This is part of my Powershell Challenge, to learn more about PowerShell (PoSh) using the Learn Windows Powershell 3 in a Month...
2014-02-14
983 reads
Consider this now familiar view from the field:
“I’ve run a virtual team for the past 18 months in the development...
2014-02-14
1,137 reads
Photo credit – JStove
Old posts are like unicorns. You might see them just once, but it’d sure be nice to have...
2014-02-14
626 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