T-SQL Tuesday 61: A Season of Giving
Tis the season for TSQL Tuesday. Not only is it that season again, but it is also the Holiday season.
During...
2014-12-09
753 reads
Tis the season for TSQL Tuesday. Not only is it that season again, but it is also the Holiday season.
During...
2014-12-09
753 reads
I am about to set sail on a new venture with my next official whistle stop. This year has been plenty full of whistle stops and I plan on...
2014-12-08
8 reads
I am about to set sail on a new venture with my next official whistle stop. This year has been...
2014-12-08
809 reads
This past weekend I had the opportunity to go visit Washington DC. It was just the second time I got to stay in the Nation’s capitol for more than just...
2014-12-08
5 reads
This past weekend I had the opportunity to go visit Washington DC. It was just the second time I got to...
2014-12-08
551 reads
If you just so happen to be running on SQL Server 2012 or later, you will need to change your event sessions that were tracking file changes. It is...
2014-11-26
27 reads
Recently I shared an article on how to track the growths and shrinks that occur within database files. I shared...
2014-11-26
2,592 reads
It is once again time to come together as a community and talk about a common theme. This monthly gathering of the community has just reached it’s 5th anniversary....
2014-11-11
5 reads
It is once again time to come together as a community and talk about a common theme. This monthly gathering...
2014-11-11
584 reads
As Summit 2014 begins to wind down, it is time for some more impressions from the week. The week has been good so far. It has been very busy...
2014-11-07
8 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