2014-06-18
1,782 reads
2014-06-18
1,782 reads
I’m on vacation this week, but enjoying some quiet time during the day to think a little, going back through...
2014-06-17
759 reads
I try to find good stories for editorials at SQLServerCentral and the one this week about Kitchen Duty seems to...
2014-06-17
588 reads
I Gotta See the Code is a security question about viewing the code to a stored procedure. Two points if...
2014-06-16
572 reads
As an employee, are you willing to pitch in for things that aren't a normal part of your job? Today we have Andy Warren notes that he has kitchen duty at work.
2014-06-16
227 reads
Notes from the trip:
Four hour drive between traffic and rain, about an hour longer than I would have liked. The...
2014-06-16
451 reads
Fathers Day coincided with the family vacation this year and maybe more than some years I had the time to...
2014-06-16
530 reads
2014-06-16
1,912 reads
I’m leaving early afternoon for the longish drive to South Florida for SQLSaturday tomorrow. The schedule looks impressive! I missed...
2014-06-13
551 reads
I read a lot and one of the topics I enjoy reading about is woodworking. Recently I’ve been on a...
2014-06-12
634 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