Farewell Brook Ranne
For members of the SQL community in Orlando and Chicago you’ve probably heard that Brook Ranne died on March 29,...
2014-04-15
694 reads
For members of the SQL community in Orlando and Chicago you’ve probably heard that Brook Ranne died on March 29,...
2014-04-15
694 reads
I wrote Doing What It Takes To Get The Job Done about a conversation with my nephew working late to...
2014-04-15
440 reads
Today I wrote another question based on an error message. I included the error message in the question this time...
2014-04-15
496 reads
My latest question is live today, called It’s Not All About The Keys. It’s a three pointer, if score matters...
2014-04-14
441 reads
2014-04-14
2,287 reads
Over time I’ve settled on quarterly goals as the best way to focus on the stuff I most want to...
2014-04-11
534 reads
I was working on a script today to check the range of some values and trying to take the time...
2014-04-11
585 reads
I ran into a simple error last week and saved it to convert to a question. It’s another one where...
2014-04-07
569 reads
This question of the day didn’t turn out well at all – required too big a leap the way it was...
2014-04-04
506 reads
Maybe too serious a topic for a Friday, I wrote Team Reputation because I like working for good teams – who...
2014-04-04
607 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...
Telp/Wa 628218200203 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...
Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...
Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...
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