Joint oPASS/MagicPASS Meeting Scheduled for October 15, 2014- Featuring Mark Souza In Person!
Big news for us in Orlando! On October 15th Mark Souza, General Manager – Data Platform Group at Microsoft, is going...
2014-08-19
585 reads
Big news for us in Orlando! On October 15th Mark Souza, General Manager – Data Platform Group at Microsoft, is going...
2014-08-19
585 reads
A discussion that I’ve frequently had with organizers of SQL Saturday events, our own people here at Red Gate, authors,...
2014-08-19
573 reads
Once you have a query that is returning the data you like in SSMS you have a few options to...
2014-08-19
844 reads
Once you have a query that is returning the data you like in SSMS you have a few options to...
2014-08-19
40,428 reads
I'm looking forward to geauxing with a handful of Sparkhound colleagues and friends to speak at SQL Saturday Birmingham on...
2014-08-19
548 reads
Time is a constant. Anything and everything requires time it seems, and with that said I received a reminder today...
2014-08-18
306 reads
SQLTea - Our new SQL Tutorial App on Google Play StoreWe are happy to announce our new SQL tutorial app SQLTea...
2014-08-18
1,385 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-08-18
505 reads
Just checked in on my LinkedIn campaign. This is the one that uses job titles. Not a ton of impressions,...
2014-08-18
506 reads
Many of you may already know that I am a PASS regional mentor for the South Central region of the...
2014-08-18
490 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