Star Performers Need Extra Affirmation After a Setback
There are two major reasons baseball has been such a boon to statisticians trying to measure human performance. First, sample...
2014-02-23
619 reads
There are two major reasons baseball has been such a boon to statisticians trying to measure human performance. First, sample...
2014-02-23
619 reads
A Strategic alliance between the biggest Linux vendor and the leader in fully opensource hadoop is a killer combo. Read...
2014-02-23
468 reads
Excel- and cloud-based BI suite finally comes out of preview. Woot! – check out all the details here
from ZDNet | Big On...
2014-02-22
527 reads
The first step in treating rust is keeping it from forming, which means keeping your truck’s metal painted, plated, or...
2014-02-22
473 reads
I have been working 100% from home for almost four months now, and one of my former coworkers recently hit...
2014-02-22
547 reads
Well, Kem’s cruiser was actually just a bit faded but pretty much in great shape. He had hired someone else...
2014-02-22
406 reads
For someone re-initialization is very simple, just go to publisher and right click and select re-initiallize and it will ask...
2014-02-22
566 reads
Here is a cool looking 1964 FJ40 Toyota Land Cruiser in good original condition…a road warrior that has a great...
2014-02-22
743 reads
when you check on the sql server services and sql agent services it’s getting started on windows cluster but on...
2014-02-22
685 reads
What is (SSAS) SQL Server Analysis Services Tabular Mode?
SQL Server 2012 ships Analysis Services that can be installed in the...
2014-02-22
2,199 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...
Comments posted to this topic are about the item Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
Comments posted to this topic are about the item The DBA is Dead! Long...
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