Vote for the PASS Board of Directors
Voting is open for the PASS Board of Directors. It’s a non-event this year, with three open positions and three...
2018-11-09
877 reads
Voting is open for the PASS Board of Directors. It’s a non-event this year, with three open positions and three...
2018-11-09
877 reads
As is true in most facets of life, things tend to get stale and old. Sometimes this staleness can be visibly represented as the wrinkles on your face. Other...
2018-11-09
32 reads
As is true in most facets of life, things tend to get stale and old. Sometimes this staleness can be...
2018-11-09
2,333 reads
Microsoft redid its Data Science Track not too long ago and they added several courses and new progress points. One...
2018-11-19 (first published: 2018-11-08)
2,794 reads
11:48am This will be starting shortly! We’re stuffing our faces, first. Today’s featured speaker is Lauri Bingham, Director of Technology Engineering...
2018-11-08
217 reads
It’s the second main-session day of the Summit for the Professional Association of SQL Server. I had a great breakfast this morning with Brent Ozar, along with Nathan and...
2018-11-08
18 reads
Hello yet again! I’ve been writing about our time this week in Seattle, for the PASS Summit. Saturday, I wrote that we’re here...
2018-11-08
202 reads
The Richmond SQL Server User Group, located in Richmond, VA, is looking for speakers for the 2019 calendar year. Due...
2018-11-08
660 reads
It’s keynote time again! The second full day of the conference starts now, and like yesterday, I’ll be live-blogging during...
2018-11-08
195 reads
It is day 2 of the summit already, am at the bloggers table again, waiting for the rest of the...
2018-11-08
166 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