Mr. Carter, Where Did You Go?
It has been nearly a month since your last blog post Mr. Carter, and frankly your last post was nothing...
2014-04-22
730 reads
It has been nearly a month since your last blog post Mr. Carter, and frankly your last post was nothing...
2014-04-22
730 reads
It’s Monday time for this week’s weekly link round-up. If you want to catch these links “live” (so exciting), follow...
2014-04-22
1,004 reads
Do you know what the “Three A’s of Security” are and how they apply to Microsoft SQL Server? Let’s look...
2014-05-01 (first published: 2014-04-22)
7,372 reads
Blogging isn’t easy. You have to come up with a topic, write about it, and then release it for the...
2014-05-02 (first published: 2014-04-22)
1,500 reads
That is a patently false statement and total BS. It sure does crawl up your spine though doesn’t it? Why...
2014-04-22
935 reads
I’ll be doing double time over the next two weeks with Two Presentations on SQL Server Internals. It is essentially...
2014-04-22
668 reads
Steps to install SQL Server Failover Cluster from SQL Server 2008 onwards :-
1) Open SQL Server Installation Center > Go to...
2014-04-29 (first published: 2014-04-22)
2,439 reads
I have just returned from a trip to Washington DC where I was delivering course 2105 – SQL Server 2012 DBA...
2014-04-22
844 reads
On Thursday, May 1st, I will be presenting a new webcast with Tegile Systems entitled “Easy SQL Server Benchmarking”.
Abstract: Do you have a new piece of...
2014-04-30 (first published: 2014-04-21)
1,419 reads
Same room but different seating arrangement. Instead of separate table pushed some together, used the space better and more a...
2014-04-21
525 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 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,...
Comments posted to this topic are about the item Using CHOOSE()
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