Running Out of Foreign Keys-Question of the Day
Running Out of Foreign Keys is live today. Nothing too interesting about this one, a straight forward question where you...
2014-05-20
345 reads
Running Out of Foreign Keys is live today. Nothing too interesting about this one, a straight forward question where you...
2014-05-20
345 reads
2014-05-20
1,810 reads
Two days felt like a long time, so we found a cloud server with 16 cores we could use. We...
2014-05-19
611 reads
One of things I wish PASS provided was at least one template for an event flyer, something that is basically...
2014-05-18
508 reads
It might or might not surprise you that I learned to code in Basic. I suppose my first real attempt...
2014-05-16
707 reads
A quick plug today for Statistics Parser by Richie Rump, a free web site that takes the output from “set...
2014-05-16
1,079 reads
I’ve run into the not uncommon situation where there is a SQL login and no one seems to have the...
2014-05-15
1,018 reads
Today is Peace Officers Memorial Day and that’s why the flag is at half staff (Had to search, I didn’t...
2014-05-15
318 reads
Just spent some time re-reading my notes far and my ideas from before – glad I wrote them down, lots and...
2014-05-14
541 reads
Drop Me? No, I Don’t Think So is my latest question of the day and has to do with dropping...
2014-05-14
402 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